• DarkRP new jobs won't show. Error in console
    0 replies, posted
I made two custom jobs for DarkRP and I get two errors in the console. I will first post my jobs file. --[[--------------------------------------------------------------------------- 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: [url]https://github.com/FPtje/DarkRP/blob/master/gamemode/config/jobrelated.lua[/url] For examples and explanation please visit this wiki page: [url]http://wiki.darkrp.com/index.php/DarkRP:CustomJobFields[/url] Add jobs under the following line: ---------------------------------------------------------------------------]] TEAM_SURVIVOR = DarkRP.createJob("Citizen", { color = Color(20, 150, 20, 255), model = { "models/player/Group01/Female_01.mdl", "models/player/Group01/Female_02.mdl", "models/player/Group01/Female_03.mdl", "models/player/Group01/Female_04.mdl", "models/player/Group01/Female_06.mdl", "models/player/group01/male_01.mdl", "models/player/Group01/Male_02.mdl", "models/player/Group01/male_03.mdl", "models/player/Group01/Male_04.mdl", "models/player/Group01/Male_05.mdl", "models/player/Group01/Male_06.mdl", "models/player/Group01/Male_07.mdl", "models/player/Group01/Male_08.mdl", "models/player/Group01/Male_09.mdl" }, description = [[As one of the last survivors on earth, you are an average citizen in the last city..]], weapons = {}, command = "survivor", max = 0, salary = GAMEMODE.Config.normalsalary, admin = 0, vote = false, hasLicense = false, candemote = false, category = "Citizens", }) TEAM_HITMAN = DarkRP.createJob("Hitman", { color = Color(25, 25, 25, 255), model = { "/garrysmod/models/tuxs/male_01.mdl", "/garrysmod/models/tuxs/male_02.mdl", "/garrysmod/models/tuxs/male_03.mdl". "/garrysmod/models/tuxs/male_04.mdl", "/garrysmod/models/tuxs/male_05.mdl", "/garrysmod/models/tuxs/male_06.mdl", "/garrysmod/models/tuxs/male_07.mdl", "/garrysmod/models/tuxs/male_08.mdl", "/garrysmod/models/tuxs/male_09.mdl", }, description = [[As a hitman your customers give you money to kill those they hate. Dirty buisness, but you like dirty don't you?]], weapons = {}, command = "hitman", max = 3, salary = 30, admin = 0, vote = false, hasLicense = false, category = "Citizens", }) --[[--------------------------------------------------------------------------- Define which team joining players spawn into and what team you change to if demoted ---------------------------------------------------------------------------]] GAMEMODE.DefaultTeam = TEAM_SURVIVOR --[[--------------------------------------------------------------------------- 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_HITMAN) Here are the 2 errors I get. Error 1- [ERROR] gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua:520: attempt to index a nil value 1. initPlayer - gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua:520 2. unknown - gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua:544 Error 2- [ERROR] addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua:55: '}' expected (to close '{' at line 52) near '.' 1. unknown - addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua:0 If you can help me I would really appreciate it. Thanks [editline]11th June 2015[/editline] I fixed the issue I was an idiot. I put a period where I meant to buy a comma
Sorry, you need to Log In to post a reply to this thread.