DarkRP jobs not selectable?

If this isn’t the right place to post this, then disregard it or move it to the appropriate forum xD

So I’m having this problem with DarkRP, I was editing the job descriptions in shared.lua, when all of a sudden after rebooting, all the jobs were gone! I have since then fixed that, but now when I go to select the jobs by pushing F4, the menu just disappears without the job being switched. Switching to the job manually works, as I can do it through administration, but for some reason it’s not working through the menu?

Help me, derp. :v:

What did you do to break it originally?
Are you sure you only edited shared.lua, and not any other file before restarting?
What did you do to fix it, did you have to modify any other file besides shared, or did you just fix an error in the code?

Also post your shared.lua

Here is a little script I made a little while back to test your classes for errors, although it won’t check for modules etc as it is http://www.lua.org/cgi-bin/demo compatible.

[lua]

function Color( … )

return { ... };

end

function AddExtraTeam( … )

local _args = { ... };

local function parseTable( tab )

	local _str = "{ ";

	for int_i = 1, #tab do
		
		_str = _str .. tab[ int_i ] .. ", ";
		
	end

	return _str .. "}";

end

local _checkSum = {
	
	{ "Class Name", "STRING" },
	{ "Class Color", "TABLE" },
	{ "Class Model", { "TABLE", "STRING" } },
	{ "Class Description", "STRING" },
	{ "Class Weapons", "TABLE" },
	{ "Class Command", { "STRING", 1} },
	{ "Class Max", "NUMBER" },
	{ "Class Salary", "NUMBER" },
	{ "Class Aff", "NUMBER" },
	{ "Gun License", "BOOLEAN" }, 
	
};

if( #_args <= (#_checkSum) )then
	
	print( "[!!]	Invalid number of arguments, you need atleast " .. #_args );
	
end

for int_i = 1, #_args do

	local _verif = string.upper( type( _args[int_i] ) );
	
	if( string.upper( type( _args[ int_i ] ) ) == "TABLE" )then
	
		_args[ int_i ] = parseTable( _args[ int_i ] );
		
	end

	if( _checkSum[int_i] ~= nil )then
		
		local _tabCheck = (  string.upper( type( _checkSum[int_i][2] ) ) == "TABLE" );
		
		if( _tabCheck )then
			
			_lS = _checkSum[int_i][2];
			
			if( _lS[2] == 1 )then
			
				if( string.byte( string.sub( tostring( _lS[1][1] ), 0, 1 ) ) == 47 )then
					
					print( "[!!]	Your class command contains a / in it!" );
					
				end
				
			end
			
			if( ( _verif == _checkSum[ int_i ][ 2 ][ 1 ] ) or ( _verif == _checkSum[ int_i ][ 2 ][ 2 ] ) )then
			
				print( _checkSum[ int_i ][ 1 ] .. " :: WORKING :: " .. _args[int_i] );
			
			else
				
				print( "[!!]	" .. _checkSum[ int_i ][ 1 ] .. " :: ERROR BAD ARGUMENT TYPE" );
				
			end
			
		else
		
			if( _verif ==  _checkSum[ int_i ][ 2 ] )then
				
				print( _checkSum[ int_i ][ 1 ] .. " :: WORKING :: " .. tostring( _args[int_i] ) );
				
			else
			
				print( "[!!]	" .. _checkSum[ int_i ][ 1 ] .. " :: ERROR BAD ARGUMENT TYPE" );
			
			end
			
		end
		
	end

end

print("-----------------------------------------

");

end

–[[

Enter your dumb class information below.

]]–

TEAM_SALE = AddExtraTeam(“Illegal Weapon Salesman”, Color(205,102,51,255), “models/player/t_guerilla.mdl”, [[Sell your guns! Dont get Caught!!!]], {“weapon_mad_deagle”, “weapon_mad_fists”}, “illegal”, 2, “45”, 0, false, false, TEAM_SALE);
[/lua]