DarkRP | Job making error

Ok so I finished my job shit, now I restart. Join, job is not there. Wtf? So I type in its unique command, then I can’t open F4 because of JobTable error.

init.lua


AddCSLuaFile()
include( "vgui.lua" )

local locations = {}

function Gotjobcreator()
	local jobcreator = net.ReadTable()
		if not file.Exists( "data/the-creator-logs", "GAME" ) then
		file.CreateDir( "the-creator-logs" )
		file.CreateDir( "the-creator-logs/jobs" )
		file.Write( "the-creator-logs/read.txt", 'DO NOT DELETE THIS FILE, UNLESS YOU DO NOT WANT YOUR CUSTOM, SWEPS/WEAPONS, JOBS and MORE!' )
		end
	
		file.CreateDir( "the-creator-logs/jobs/"..jobcreator.name )
		file.Write( "the-creator-logs/jobs/"..jobcreator.name.."/color.txt", jobcreator.color )
		file.Write( "the-creator-logs/jobs/"..jobcreator.name.."/model.txt", jobcreator.model )
		file.Write( "the-creator-logs/jobs/"..jobcreator.name.."/description.txt", jobcreator.description )
		file.Write( "the-creator-logs/jobs/"..jobcreator.name.."/salary.txt", jobcreator.salary )
		file.Write( "the-creator-logs/jobs/"..jobcreator.name.."/category.txt", jobcreator.category )
		file.Write( "the-creator-logs/jobs/"..jobcreator.name.."/max.txt", jobcreator.max )
		file.Write( "the-creator-logs/jobs/"..jobcreator.name.."/admin.txt", jobcreator.admin )
		file.Write( "the-creator-logs/jobs/"..jobcreator.name.."/vote.txt", tostring(jobcreator.vote) )
		file.Write( "the-creator-logs/jobs/"..jobcreator.name.."/license.txt", tostring(jobcreator.license) )
		file.Write( "the-creator-logs/jobs/"..jobcreator.name.."/demote.txt", tostring(jobcreator.demote) )
		file.Write( "the-creator-logs/jobs/"..jobcreator.name.."/vip.txt", tostring(jobcreator.vip) )
		file.Write( "the-creator-logs/jobs/"..jobcreator.name.."/medic.txt", tostring(jobcreator.medic) )
		file.Write( "the-creator-logs/jobs/"..jobcreator.name.."/chief.txt", tostring(jobcreator.chief) )
		file.Write( "the-creator-logs/jobs/"..jobcreator.name.."/cook.txt", tostring(jobcreator.cook) )
		file.Write( "the-creator-logs/jobs/"..jobcreator.name.."/mayor.txt", tostring(jobcreator.mayor) )
		file.Write( "the-creator-logs/jobs/"..jobcreator.name.."/weapons.txt", tostring(jobcreator.weapon) )
		file.Write( "the-creator-logs/jobs/"..jobcreator.name.."/hobo.txt", tostring(jobcreator.hobo) )
end
net.Receive( "CreateJob", Gotjobcreator )

local function Init()
			local files, directories = file.Find( "the-creator-logs/jobs/*", "DATA" )
	
		for k,v in pairs( directories ) do
			table.insert( locations, "the-creator-logs/jobs/"..v )
		end

		for k,v in pairs( locations ) do
	
		if SERVER then
	-- Jobs
	_G["TEAM_" .. string.upper( directories[k] )] = DarkRP.createJob( directories[k], {
			color = string.ToColor( file.Read( v.."/color.txt", "DATA" ) ),
			model = string.Explode( ", ", file.Read( v.."/model.txt", "DATA" ) ),
			description = file.Read( v.."/description.txt", "DATA" ),
			weapons = string.Explode( ", ", file.Read( v.."/weapons.txt", "DATA" ) ),
			command = tostring(directories[k]),
			max = tonumber(file.Read( v.."/max.txt", "DATA" )), -- at most 70% of the players can have this job. Set to a whole number to set an absolute limit.
			salary = tonumber(file.Read( v.."/salary.txt", "DATA" )),
			admin = tonumber(file.Read( v.."/admin.txt", "DATA" )),
			--vote = tonumber(file.Read( v.."/vote.txt", "DATA" )),
			hasLicense = tonumber(file.Read( v.."/license.txt", "DATA" )),
			category = tostring(file.Read( v.."/category.txt", "DATA" )), -- The name of the category it is in. Note: the category must be created!
			candemote = tonumber(file.Read( v.."/demote.txt", "DATA" )),
			medic = tonumber(file.Read( v.."/medic.txt", "DATA" )),
			chief = tonumber(file.Read( v.."/chief.txt", "DATA" )),
			mayor = tonumber(file.Read( v.."/mayor.txt", "DATA" )),
			hobo = tonumber(file.Read( v.."/hobo.txt", "DATA" )),
			cook = tonumber(file.Read( v.."/cook.txt", "DATA" )),
	})
		end
	end
end
hook.Add( "Initialize", "Init", Init )

if SERVER then
util.AddNetworkString( "cstudio" )
end

hook.Add( "PlayerSay", "CStudios", function( ply, text, team )
	
	if ( text == "!c-s" ) then
		if ply:IsAdmin() then
			net.Start( "cstudio" )
			net.Send( ply )
			return "";
		else
			ply:ChatPrint( "You dont have access!" )
		end
	end	
end );

vgui.lua


AddCSLuaFile()
local files, directories = file.Find( "the-creator-logs/jobs/*", "DATA" )
if SERVER then
util.AddNetworkString( "CreateJob" )
end

net.Receive( "cstudio",
    function()
	local frame = vgui.Create( "DFrame" )
	frame:SetSize( 500, 600 )
	frame:SetTitle( "Creator Studio" )
	frame:MakePopup()
	frame:Center()

		local Scroll = vgui.Create( "DScrollPanel", frame ) //Create the Scroll panel
		Scroll:SetSize( 355, 200 )
		Scroll:SetPos( 50, 100 )

		local List	= vgui.Create( "DIconLayout", Scroll )
		List:SetSize( 340, 200 )
		List:SetPos( 0, 0 )
		List:SetSpaceY( 5 ) //Sets the space in between the panels on the X Axis by 5
		List:SetSpaceX( 5 ) //Sets the space in between the panels on the Y Axis by 5

	local DButton1 = vgui.Create( "DButton", frame )
	DButton1:SetPos( 50, 40 )
	DButton1:SetText( "Add" )
	DButton1:SetSize( 120, 60 )
	DButton1.DoClick = function()
			local frame2 = vgui.Create( "DFrame" )
			frame2:SetSize( 500, 600 )
			frame2:SetTitle( "Creator Studio - Add" )
			frame2:MakePopup()
			frame2:Center()
			
			-- Name
			local name = vgui.Create( "DTextEntry", frame2 ) -- create the form as a child of frame
			name:SetPos( 80, 25 )
			name:SetSize( 360, 15 )
			name:SetText( "" )
			
			local namepanel = vgui.Create( "DPanel", frame2 )
			namepanel:SetPos( 25, 25 ) -- Set the position of the panel
			namepanel:SetSize( 50, 15 ) -- Set the size of the panel
		
			local nametext = vgui.Create( "DLabel", namepanel )
			nametext:SetPos( 10, 0 )
			nametext:SetText( "Name" ) -- Set the text of the label
			nametext:SizeToContents()
			nametext:SetDark( 1 )
			
			-- Color 
			
			local colors = vgui.Create( "DTextEntry", frame2 ) -- create the form as a child of frame
			colors:SetPos( 75, 50 )
			colors:SetSize( 155, 15 )
			colors:SetText( "255 255 255" )
			
			local colorpanel = vgui.Create( "DPanel", frame2 )
			colorpanel:SetPos( 25, 50 ) -- Set the position of the panel
			colorpanel:SetSize( 50, 20 ) -- Set the size of the panel
		
			local colortext = vgui.Create( "DLabel", colorpanel )
			colortext:SetPos( 10, 0 )
			colortext:SetText( "Color" ) -- Set the text of the label
			colortext:SizeToContents()
			colortext:SetDark( 1 )
			
			-- Player Model
			local model = vgui.Create( "DTextEntry", frame2 ) -- create the form as a child of frame
			model:SetPos( 85, 75 )
			model:SetSize( 360, 15 )
			model:SetText( "ex: models/player/alyx.mdl, models/player/breen.mdl" )
			
			local modelpanel = vgui.Create( "DPanel", frame2 )
			modelpanel:SetPos( 25, 75 ) -- Set the position of the panel
			modelpanel:SetSize( 50, 15 ) -- Set the size of the panel
		
			local modeltext = vgui.Create( "DLabel", modelpanel )
			modeltext:SetPos( 10, 0 )
			modeltext:SetText( "Models" ) -- Set the text of the label
			modeltext:SizeToContents()
			modeltext:SetDark( 1 )
			
			-- Description
			local description = vgui.Create( "DTextEntry", frame2 ) -- create the form as a child of frame
			description:SetPos( 110, 100 )
			description:SetSize( 350, 15 )
			description:SetText( "" )
			
			local descriptionpanel = vgui.Create( "DPanel", frame2 )
			descriptionpanel:SetPos( 25, 100 ) -- Set the position of the panel
			descriptionpanel:SetSize( 75, 15 ) -- Set the size of the panel
		
			local descriptiontext = vgui.Create( "DLabel", descriptionpanel )
			descriptiontext:SetPos( 10, 0 )
			descriptiontext:SetText( "Description" ) -- Set the text of the label
			descriptiontext:SizeToContents()
			descriptiontext:SetDark( 1 )
			
			-- Max Players
			local max = vgui.Create( "DTextEntry", frame2 ) -- create the form as a child of frame
			max:SetPos( 75, 125 )
			max:SetSize( 50, 15 )
			max:SetText( "" )
			
			local maxpanel = vgui.Create( "DPanel", frame2 )
			maxpanel:SetPos( 25, 125 ) -- Set the position of the panel
			maxpanel:SetSize( 50, 15 ) -- Set the size of the panel
		
			local maxtext = vgui.Create( "DLabel", maxpanel )
			maxtext:SetPos( 10, 0 )
			maxtext:SetText( "Max" ) -- Set the text of the label
			maxtext:SizeToContents()
			maxtext:SetDark( 1 )
			
			-- Must be voted for option
			local vote = vgui.Create( "DCheckBox", frame2 )// Create the checkbox
			vote:SetPos( 25, 225 )// Set the position
			vote:SetValue( 0 )// Initial value ( will determine whether the box is ticked too )
			
			local votepanel = vgui.Create( "DPanel", frame2 )
			votepanel:SetPos( 50, 225 ) -- Set the position of the panel
			votepanel:SetSize( 300, 15 ) -- Set the size of the panel
		
			local votetext = vgui.Create( "DLabel", votepanel )
			votetext:SetPos( 10, 0 )
			votetext:SetText( "Tick to make the job vote only (like police)" ) -- Set the text of the label
			votetext:SizeToContents()
			votetext:SetDark( 1 )
			
			-- Weapons
			local weapon = vgui.Create( "DTextEntry", frame2 ) -- create the form as a child of frame
			weapon:SetPos( 100, 150 )
			weapon:SetSize( 360, 15 )
			weapon:SetText( "like this: weapon_shotgun, weapon_crossbow, weapon_bugbait" )
			
			local weaponpanel = vgui.Create( "DPanel", frame2 )
			weaponpanel:SetPos( 25, 150 ) -- Set the position of the panel
			weaponpanel:SetSize( 75, 15 ) -- Set the size of the panel
		
			local weapontext = vgui.Create( "DLabel", weaponpanel )
			weapontext:SetPos( 10, 0 )
			weapontext:SetText( "Weapons" ) -- Set the text of the label
			weapontext:SizeToContents()
			weapontext:SetDark( 1 )
			
			-- Salary
			local salary = vgui.Create( "DTextEntry", frame2 ) -- create the form as a child of frame
			salary:SetPos( 100, 175 )
			salary:SetSize( 50, 15 )
			salary:SetText( "" )
			
			local salarypanel = vgui.Create( "DPanel", frame2 )
			salarypanel:SetPos( 25, 175 ) -- Set the position of the panel
			salarypanel:SetSize( 75, 15 ) -- Set the size of the panel
		
			local salarytext = vgui.Create( "DLabel", salarypanel )
			salarytext:SetPos( 10, 0 )
			salarytext:SetText( "Salary" ) -- Set the text of the label
			salarytext:SizeToContents()
			salarytext:SetDark( 1 )
			
			-- Category
			local category = vgui.Create( "DTextEntry", frame2 ) -- create the form as a child of frame
			category:SetPos( 100, 200 )
			category:SetSize( 360, 15 )
			category:SetText( "Category name aka Citizens, Civil Protection" )
			
			local categorypanel = vgui.Create( "DPanel", frame2 )
			categorypanel:SetPos( 25, 200 ) -- Set the position of the panel
			categorypanel:SetSize( 75, 15 ) -- Set the size of the panel
		
			local categorytext = vgui.Create( "DLabel", categorypanel )
			categorytext:SetPos( 10, 0 )
			categorytext:SetText( "Category" ) -- Set the text of the label
			categorytext:SizeToContents()
			categorytext:SetDark( 1 )
			
			-- admin
			local admin = vgui.Create( "DTextEntry", frame2 ) -- create the form as a child of frame
			admin:SetPos( 100, 250 )
			admin:SetSize( 360, 15 )
			admin:SetText( "0 = Access for all, 1 = Admin and over, 2 = Superadmin and over" )
			
			local adminpanel = vgui.Create( "DPanel", frame2 )
			adminpanel:SetPos( 25, 250 ) -- Set the position of the panel
			adminpanel:SetSize( 75, 15 ) -- Set the size of the panel
		
			local admintext = vgui.Create( "DLabel", adminpanel )
			admintext:SetPos( 10, 0 )
			admintext:SetText( "Admin" ) -- Set the text of the label
			admintext:SizeToContents()
			admintext:SetDark( 1 )
			
			-- license
			local license = vgui.Create( "DCheckBox", frame2 )// Create the checkbox
			license:SetPos( 25, 275 )// Set the position
			license:SetValue( 0 )// Initial value ( will determine whether the box is ticked too )
			
			local licensepanel = vgui.Create( "DPanel", frame2 )
			licensepanel:SetPos( 50, 275 ) -- Set the position of the panel
			licensepanel:SetSize( 300, 15 ) -- Set the size of the panel
		
			local licensetext = vgui.Create( "DLabel", licensepanel )
			licensetext:SetPos( 10, 0 )
			licensetext:SetText( "Tick to give the job a gun license" ) -- Set the text of the label
			licensetext:SizeToContents()
			licensetext:SetDark( 1 )
			
			-- Demote
			local demote = vgui.Create( "DCheckBox", frame2 )// Create the checkbox
			 demote:SetPos( 25, 300 )// Set the position
			 demote:SetValue( 0 )// Initial value ( will determine whether the box is ticked too )
			
			local demotepanel = vgui.Create( "DPanel", frame2 )
			demotepanel:SetPos( 50, 300 ) -- Set the position of the panel
			demotepanel:SetSize( 300, 15 ) -- Set the size of the panel
		
			local demotetext = vgui.Create( "DLabel", demotepanel )
			demotetext:SetPos( 10, 0 )
			demotetext:SetText( "Tick to allow demoting of the job" ) -- Set the text of the label
			demotetext:SizeToContents()
			demotetext:SetDark( 1 )
			
			-- traits
			local medic = vgui.Create( "DCheckBox", frame2 )// Create the checkbox
			 medic:SetPos( 25, 325 )// Set the position
			 medic:SetValue( 0 )// Initial value ( will determine whether the box is ticked too )
			
			local medicpanel = vgui.Create( "DPanel", frame2 )
			medicpanel:SetPos( 50, 325 ) -- Set the position of the panel
			medicpanel:SetSize( 300, 15 ) -- Set the size of the panel
		
			local medictext = vgui.Create( "DLabel", medicpanel )
			medictext:SetPos( 10, 0 )
			medictext:SetText( "Tick to have medic traits" ) -- Set the text of the label
			medictext:SizeToContents()
			medictext:SetDark( 1 )
			
			local chief = vgui.Create( "DCheckBox", frame2 )// Create the checkbox
			 chief:SetPos( 25, 350 )// Set the position
			 chief:SetValue( 0 )// Initial value ( will determine whether the box is ticked too )
			
			local chiefpanel = vgui.Create( "DPanel", frame2 )
			chiefpanel:SetPos( 50, 350 ) -- Set the position of the panel
			chiefpanel:SetSize( 300, 15 ) -- Set the size of the panel
		
			local chieftext = vgui.Create( "DLabel", chiefpanel )
			chieftext:SetPos( 10, 0 )
			chieftext:SetText( "Tick to have a chiefs traits" ) -- Set the text of the label
			chieftext:SizeToContents()
			chieftext:SetDark( 1 )
			
			local mayor = vgui.Create( "DCheckBox", frame2 )// Create the checkbox
			 mayor:SetPos( 25, 375 )// Set the position
			 mayor:SetValue( 0 )// Initial value ( will determine whether the box is ticked too )
			
			local mayorpanel = vgui.Create( "DPanel", frame2 )
			mayorpanel:SetPos( 50, 375 ) -- Set the position of the panel
			mayorpanel:SetSize( 300, 15 ) -- Set the size of the panel
		
			local mayortext = vgui.Create( "DLabel", mayorpanel )
			mayortext:SetPos( 10, 0 )
			mayortext:SetText( "Tick to have a mayor traits" ) -- Set the text of the label
			mayortext:SizeToContents()
			mayortext:SetDark( 1 )
			
			local hobo = vgui.Create( "DCheckBox", frame2 )// Create the checkbox
			hobo:SetPos( 25, 400 )// Set the position
			 hobo:SetValue( 0 )// Initial value ( will determine whether the box is ticked too )
			
			local hobopanel = vgui.Create( "DPanel", frame2 )
			hobopanel:SetPos( 50, 400 ) -- Set the position of the panel
			hobopanel:SetSize( 300, 15 ) -- Set the size of the panel
		
			local hobotext = vgui.Create( "DLabel", hobopanel )
			hobotext:SetPos( 10, 0 )
			hobotext:SetText( "Tick to have a hobos traits" ) -- Set the text of the label
			hobotext:SizeToContents()
			hobotext:SetDark( 1 )
			
			local cook = vgui.Create( "DCheckBox", frame2 )// Create the checkbox
			 cook:SetPos( 25, 425 )// Set the position
			 cook:SetValue( 0 )// Initial value ( will determine whether the box is ticked too )
			
			local cookpanel = vgui.Create( "DPanel", frame2 )
			cookpanel:SetPos( 50, 425 ) -- Set the position of the panel
			cookpanel:SetSize( 300, 15 ) -- Set the size of the panel
		
			local cooktext = vgui.Create( "DLabel", cookpanel )
			cooktext:SetPos( 10, 0 )
			cooktext:SetText( "Tick to have a cooks traits" ) -- Set the text of the label
			cooktext:SizeToContents()
			cooktext:SetDark( 1 )
			
			-- VIP
			
			local vip = vgui.Create( "DCheckBox", frame2 )// Create the checkbox
			 vip:SetPos( 25, 450 )// Set the position
			 vip:SetValue( 0 )// Initial value ( will determine whether the box is ticked too )
			
			local vippanel = vgui.Create( "DPanel", frame2 )
			vippanel:SetPos( 50, 450 ) -- Set the position of the panel
			vippanel:SetSize( 300, 15 ) -- Set the size of the panel
		
			local viptext = vgui.Create( "DLabel", vippanel )
			viptext:SetPos( 10, 0 )
			viptext:SetText( "Tick to enable vip only job! * You must call the rank VIP! For best results." ) -- Set the text of the label
			viptext:SizeToContents()
			viptext:SetDark( 1 )
			
			local vip1 = vgui.Create( "DTextEntry", frame2 ) -- create the form as a child of frame
			vip1:SetPos( 100, 475 )
			vip1:SetSize( 360, 15 )
			vip1:SetText( "Add ranks that can use the job here, only if you tick vip box. Ex: admin, moderator, owner" )
			
			local vip1panel = vgui.Create( "DPanel", frame2 )
			vip1panel:SetPos( 25, 475 ) -- Set the position of the panel
			vip1panel:SetSize( 75, 15 ) -- Set the size of the panel
		
			local vip1text = vgui.Create( "DLabel", vip1panel )
			vip1text:SetPos( 10, 0 )
			vip1text:SetText( "Custom" ) -- Set the text of the label
			vip1text:SizeToContents()
			vip1text:SetDark( 1 )
			
			local finish = vgui.Create( "DButton", frame2 )
			finish:SetPos( 50, 500 )
			finish:SetText( "Finish" )
			finish:SetSize( 120, 60 )
			finish.DoClick = function()
					jobcreator = {}
					
					if name:GetValue() != "" or " " then
					
					jobcreator.name = name:GetValue()
					jobcreator.color = colors:GetValue()
					jobcreator.model = model:GetValue()
					jobcreator.description = description:GetValue()
					jobcreator.weapon = weapon:GetValue()
					jobcreator.salary = salary:GetValue()
					jobcreator.category = category:GetValue()
					jobcreator.max = max:GetValue()
					jobcreator.admin = admin:GetValue()
					
									-- Check boxes (Normal)
					jobcreator.vote = vote:GetChecked()
				
					jobcreator.license = license:GetChecked()

					jobcreator.demote = demote:GetChecked()
				
					jobcreator.vip = vip:GetChecked()
				
				-- Check boxes (traits)
					jobcreator.medic = medic:GetChecked()
				
					jobcreator.chief = chief:GetChecked()
				
					jobcreator.mayor = mayor:GetChecked()
				
					jobcreator.hobo = hobo:GetChecked()
				
					jobcreator.cook = cook:GetChecked()
					
					else
						LocalPlayer():ChatPrint( "Sorry, and error occured. Please fix server name!" )
					end
					
					net.Start( "CreateJob" )
					net.WriteTable( jobcreator )
					net.SendToServer()
				
				frame2:Remove()
			end
		end
	for k,v in pairs( directories ) do
			local ListItem = List:Add( "DButton" ) //Add DPanel to the DIconLayout
			ListItem:SetSize( 80, 40 )
			ListItem:SetText( v )
			ListItem.DoClick = function()
				local frame1 = vgui.Create( "DFrame" )
				frame1:SetSize( 200, 200 )
				frame1:SetTitle( "Creator Studio - Delete" )
				frame1:MakePopup()
				frame1:Center()
			
			local DButton = vgui.Create( "DButton", frame1 )
			DButton:SetPos( 40, 40 )
			DButton:SetText( "Delete" )
			DButton:SetSize( 120, 60 )
			DButton.DoClick = function()
		file.Delete( "the-creator-logs/jobs/"..v )
		file.Delete( "the-creator-logs/jobs/"..v.."/color.txt" )
		file.Delete( "the-creator-logs/jobs/"..v.."/model.txt" )
		file.Delete( "the-creator-logs/jobs/"..v.."/description.txt")
		file.Delete( "the-creator-logs/jobs/"..v.."/salary.txt" )
		file.Delete( "the-creator-logs/jobs/"..v.."/category.txt" )
		file.Delete( "the-creator-logs/jobs/"..v.."/max.txt" )
		file.Delete( "the-creator-logs/jobs/"..v.."/admin.txt" )
		file.Delete( "the-creator-logs/jobs/"..v.."/vote.txt" )
		file.Delete( "the-creator-logs/jobs/"..v.."/license.txt" )
		file.Delete( "the-creator-logs/jobs/"..v.."/demote.txt" )
		file.Delete( "the-creator-logs/jobs/"..v.."/vip.txt" )
		file.Delete( "the-creator-logs/jobs/"..v.."/medic.txt" )
		file.Delete( "the-creator-logs/jobs/"..v.."/chief.txt" )
		file.Delete( "the-creator-logs/jobs/"..v.."/cook.txt" )
		file.Delete( "the-creator-logs/jobs/"..v.."/mayor.txt" )
		file.Delete( "the-creator-logs/jobs/"..v.."/weapons.txt" )
		file.Delete( "the-creator-logs/jobs/"..v.."/hobo.txt" )
				frame1:Remove()
			end
		end
	end

end)

Please help, I have done everything correctly. This used to work, and when it creates files it works PERFECTLY. But the Job Part works, but the F4 menu doesnt? Load the job in?

Can you please post the code for the job that you made?

There is no code, it makes the job automatically.
This is been DUMB x4 because people dont understand what im making.
And it used to work, now it doesnt.

I use the vgui, and the vgui sends shit to the serverside and creates all these files then reads them and adds them on initialize.

The job code is there.

[editline]23rd November 2016[/editline]

Oh and the job works, just when you type the command you become the job and the F4 menu disables its self. Thats all, that is wrong.

[editline]23rd November 2016[/editline]

[DarkRP] gamemodes/darkrp/gamemode/modules/base/cl_gamemode_functions.lua:23: attempt to index local ‘jobTable’ (a nil value)

  1. Call - gamemodes/darkrp/gamemode/modules/base/cl_gamemode_functions.lua:23
  2. unknown - gamemodes/darkrp/gamemode/modules/base/cl_gamemode_functions.lua:62

You could add debugs to DarkRP where the error is coming from. Youre probably making the jobTable nil or something because its failing to read properly

True, I could try that. But, I really think its the DarkRP f4 menu and shit. You can type command tick, then you cant look at f4. On F4 before typing command there is nothing. You get everything the job gives with the command. I have no idea.

[editline]23rd November 2016[/editline]

o.o

make that 6, also he was asking for the code that gets generated…

When you type it in, its your unique. No joke, just chuck these in files. And test it yourself…

wat

isn’t this a darkrp job creator? show us the files that are generated

Oh lol

[editline]23rd November 2016[/editline]

It might be the fact im using tonumber for the statements that should be False. (So I change to tostring) and it kinda works now.

[editline]23rd November 2016[/editline]


			vote = tonumber(file.Read( v.."/vote.txt", "DATA" )),
			hasLicense = tonumber(file.Read( v.."/license.txt", "DATA" )),
			category = tostring(file.Read( v.."/category.txt", "DATA" )), -- The name of the category it is in. Note: the category must be created!
			candemote = tonumber(file.Read( v.."/demote.txt", "DATA" )),
			medic = tonumber(file.Read( v.."/medic.txt", "DATA" )),
			chief = tonumber(file.Read( v.."/chief.txt", "DATA" )),
			mayor = tonumber(file.Read( v.."/mayor.txt", "DATA" )),
			hobo = tonumber(file.Read( v.."/hobo.txt", "DATA" )),
			cook = tonumber(file.Read( v.."/cook.txt", "DATA" )),

All there is either False or True

ok let’s take baby steps then:

your script creates files and writes data to them after u save or whatever, can u show us a generated job file?? (the wholeeee thing too)

Ok…

[editline]23rd November 2016[/editline]

This is created perfectly, just read wrong I guess.

good good we’re making progress now.

now put all of those files into a pastebin or screenshot them (if you screenshot them use [.t] without the period)

(also I recommend writing it all into 1 file instead of separate of other files)

You sir need to read up about JSON, why are there so many files for all jobs? They should be one

Shhh don’t tell him, i don’t want to have competition…

jk, he does not have any chance.

This is not relevant at all. If I could report you, I would, but I am not intending on selling this script, and if you do. Then I will report all rights that it started with me, because you know. You dont go on someones page that is not about winning or losing just needing help, but you saying its a competition. Please get an admin …

you have no rights on job creators hell these where made wayyy before you even joined facepunch

sauce: https://scriptfodder.com/scripts/view/3071/

I am not here for comp, I am here for help…