Error for models

Hey! For some reason my models are errors when they are correct but now when I start up my server and connect I see one model and then when I press F4 again it is an error and then I refresh again but still doesn’t work…ERROR =((I have a police job with a choice to pick many police models). My models are correct and people see them as when I select a model but in the F4 Menu it is an error.

This is the Police job:


TEAM_POLICE = DarkRP.createJob("Police", {
	color = Color(25, 25, 170, 255),
	model = {
		"models/humans/nypd1940/male_02.mdl",
		"models/humans/nypd1940/male_03.mdl",
		"models/humans/nypd1940/male_04.mdl",
		"models/humans/nypd1940/male_05.mdl",
		"models/humans/nypd1940/male_06.mdl",
		"models/humans/nypd1940/male_07.mdl",
		"models/humans/nypd1940/male_08.mdl",
		"models/humans/nypd1940/male_09.mdl"},
	description = [[The protector of every citizen that lives in the city.
		You have the power to arrest criminals and protect innocents.
		Hit a player with your arrest baton to put them in jail.
		Bash a player with a stunstick and they may learn to obey the law.
		The Battering Ram can break down the door of a criminal, with a warrant for their arrest.
		The Battering Ram can also unfreeze frozen props (if enabled).
		Type /wanted <name> to alert the public to the presence of a criminal.]],
	weapons = {"arrest_stick", "unarrest_stick", "m9k_usp", "stunstick", "door_ram", "weaponchecker"},
	command = "cp",
	max = 6,
	salary = GAMEMODE.Config.normalsalary * 1.45,
	admin = 0,
	vote = true,
	hasLicense = true,
	ammo = {
		["pistol"] = 60,
	}
})

Please help ASAP. Thanks!

Does not appear to be any problem with your police job code. This means it is an issue with how your models are setup, you most likely have them mounted on your server incorrectly.

Is it only in the F4 menu and not when someone is that model? You might have to re-render your icons in Sandbox.

What do you mean re-render my icons in le Sandbox?

Go into Sandbox, find the icon for the model in the Q-menu, right click and render the icon.

Are you sure they users are downloading those models?

code_gs means, Do you only see errors in the F4 menu? Can you see the player models fine when you are actually the job and not just looking in the menu? If it is only in the F4 menu, rerender the icons, if it is both in the menu AND when you are actually that job (ie walking around as an error) then you have a bigger problem.

Ah okay I think I know my problem. But I have another problem: this is my jobs file right here http://pastebin.com/xjYZSRGk (the darkrpmodification one)

This is the error:

[ERROR] addons/darkrpmodification/lua/darkrp_customthings/jobs.lua:56: ‘)’ expected near ‘61’

  1. unknown - addons/darkrpmodification/lua/darkrp_customthings/jobs.lua:0

the error is in game btw. anyone know why? thanks

Line 61 you have


color = Color(61, 61 61, 255),

Missing a comma


color = Color(61, 61, 61, 255),

In the q menu if you right click an icon there is a button that says re-render. That’s what Code_gs means.

Damn I have another job error:


/*---------------------------------------------------------------------------
DarkRP custom jobs
---------------------------------------------------------------------------

This file contains your custom jobs.
This file should also contain jobs from DarkRP that you edited.

Note: If you want to edit a default DarkRP job, first disable it in darkrp_config/disabled_defaults.lua
	Once you've done that, copy and paste the job to this file and edit it.

The default jobs can be found here:
https://github.com/FPtje/DarkRP/blob/master/gamemode/config/jobrelated.lua

For examples and explanation please visit this wiki page:
 


Add jobs under the following line:
---------------------------------------------------------------------------*/

     TEAM_THIEF = DarkRP.createJob("Thief", {
        color = Color(51, 51, 0, 255),
        model = "models/player/group01/cookies114.mdl",
        description = [[You steal stuff/raid buildings!]],
        weapons = {},
        command = "thief",
        max = 5,
        salary = 40,
        admin = 0,
        vote = false,
        hasLicense = false
     })

TEAM_TAXIDRIVER = DarkRP.createJob("Taxi Driver", {
        color = Color(255, 255, 0, 255),
        model = "models/player/hostage/hostage_04.mdl",
        description = [[You drive people around with your own yellow taxi!]],
        weapons = {"weapon_physgun", "keys", "gmod_camera", "gmod_tool", "pocket", "weapon_fists", "weapon_physcannon"},
        command = "taxi",
        max = 3,
        salary = 50,
        admin = 0,
        vote = false,
        hasLicense = false
     })

TEAM_SOUTHERNNMAFIA = DarkRP.createJob("Southern Mafia", {
        color = Color(102, 0, 0, 255),
        model = "models/fearless/wsuit15.mdl",
        description = [[The Western Mafia can raid buildings and call war on Northern Mafia. They can only afford a lockpick to raid and do not have the money to make a keypad cracker like the Northern Mafia.]],
        weapons = {"weapon_physgun", "keys", "gmod_camera", "gmod_tool", "pocket", "weapon_fists", "weapon_physcannon", "lockpick"},
        command = "southernmafia",
        max = 5,
        salary = 30,
        admin = 0,
        vote = false,
        hasLicense = false
     })

TEAM_SOUTHERNMAFIADON = DarkRP.createJob("Southern Mafia Don", {
        color = Color(61, 61, 61, 255),
        model = "models/fearless/wsuit09.mdl",
        description = [[The Southern Mafia Don controls the Southern Mafia. They can command them and can call war on Northern Mafia. The Southern Mafia Don can afford a keypad cracker since he receives a higher salary for being a gang leader and he gets paid by the best criminal ever.....]],
        weapons = {"weapon_physgun", "keys", "gmod_camera", "gmod_tool", "pocket", "weapon_fists", "weapon_physcannon", "lockpick", "keypad_cracker"},
        command = "southernmafiadon",
        max = 1,
        salary = 35,
        admin = 0,
        vote = false,
        NeedToChangeFrom = TEAM_SOUTHERNMAFIA
        hasLicense = false
     })

TEAM_NORTHERNMAFIA = DarkRP.createJob("Northern Mafia", {
        color = Color(0, 0, 0, 255),
        model = "models/fearless/suit04.mdl",
        description = [[The Northern Mafia can raid buildings and call war on the Southern Mafia. They can afford a lockpick and can gain the money to get a keypad cracker. ]],
        weapons = {"weapon_physgun", "keys", "gmod_camera", "gmod_tool", "pocket", "weapon_fists", "weapon_physcannon", "lockpick", "keypad_cracker"},
        command = "northernmafia",
        max = 5,
        salary = 35,
        admin = 0,
        vote = false,
        hasLicense = false
     })

TEAM_NORTHERNMAFIADON = DarkRP.createJob("Northern Mafia Don", {
        color = Color(61, 61, 61, 255),
        model = "models/fearless/bsuit01.mdl",
        description = [[The Northern Mafia Don controls the Northern Mafia. They can command them and can call war on the Southern Mafia.]],
        weapons = {"weapon_physgun", "keys", "gmod_camera", "gmod_tool", "pocket", "weapon_fists", "weapon_physcannon", "lockpick", "keypad_cracker"},
        command = "northernmafiadon",
        max = 1,
        salary = 40,
        admin = 0,
        vote = false,
        NeedToChangeFrom = TEAM_NORTHERNMAFIA,
        hasLicense = false
     })

TEAM_RADIOBROADCASTER = DarkRP.createJob("Radio Broadcaster", {
        color = Color(102, 51, 255, 255),
        model = "models/fearless/mayor01.mdl",
        description = [[A Radio Broadcaster has the feature to broadcast music or anything from what they are saying into there microphone. Radios are planted in secret places where no one else can look and turn them off so the radio broadcaster can broadcast without any citizens turning off his/her radio broadcast.]],
        weapons = {"weapon_physgun", "keys", "gmod_camera", "gmod_tool", "pocket", "weapon_fists", "weapon_physcannon"},
        command = "radiobroadcaster",
        max = 1,
        salary = 50,
        admin = 0,
        vote = false,
        hasLicense = false
     })



/*---------------------------------------------------------------------------
Define which team joining players spawn into and what team you change to if demoted
---------------------------------------------------------------------------*/
GAMEMODE.DefaultTeam = TEAM_CITIZEN


/*---------------------------------------------------------------------------
Define which teams belong to civil protection
Civil protection can set warrants, make people wanted and do some other police related things
---------------------------------------------------------------------------*/
GAMEMODE.CivilProtection = {
	[TEAM_POLICE] = true,
	[TEAM_CHIEF] = true,
	[TEAM_MAYOR] = true,
}

/*---------------------------------------------------------------------------
Jobs that are hitmen (enables the hitman menu)
---------------------------------------------------------------------------*/
DarkRP.addHitmanTeam(TEAM_MOB)


Error in game [ERROR] addons/darkrpmodification/lua/darkrp_customthings/jobs.lua:66: ‘}’ expected (to close ‘{’ at line 55) near ‘hasLicense’

  1. unknown - addons/darkrpmodification/lua/darkrp_customthings/jobs.lua:0

F

NeedToChangeFrom = TEAM_SOUTHERNMAFIA should have a comma after it.