• DarkRP jobs not working/loading
    2 replies, posted
Title says it all. One day this file just stopped working. [CODE] /*--------------------------------------------------------------------------- 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: http://wiki.darkrp.com/index.php/DarkRP:CustomJobFields Add jobs under the following line: ---------------------------------------------------------------------------*/ //Created using DeaDeye's Classmaker TEAM_BOWLING = AddExtraTeam("Bowling Ally Owner", Color(153, 120, 204, 255), "models/player/eli.mdl", [[You manage your bowling ally by charging people go go bowling. You also manage the music.]], {"stunstick"}, "bowlingowner", 1, 120, 0, true, false, false) //Created using DeaDeye's Classmaker TEAM_LANDLORD = AddExtraTeam("Landlord", Color(153, 0, 204, 255), "models/player/eli.mdl", [[You manage your apartments by charging tenants rent and kicking them out if they don\'t pay]], {"arrest_stick"}, "landlord", 1, 120, 0, true, false, false) //Created using DeaDeye's Classmaker TEAM_HOTEL = AddExtraTeam("Hotel Owner", Color(153, 255, 204, 255), "models/player/eli.mdl", [[You manage your hotel by charging guests and kicking them out if they don\'t pay]], {"arrest_stick"}, "hotelowner", 1, 120, 0, true, false, false) //Created using DeaDeye's Classmaker TEAM_ADMIN = AddExtraTeam("Admin on Duty", Color(255, 204, 102, 255), "models/player/alyx.mdl", [[Admin Class]], {}, "admin", 0, 45, 1, false, true, false) //Created using DeaDeye's Classmaker TEAM_HITMAN = AddExtraTeam("Hitman", Color(51, 0, 255, 255), "models/player/gman_high.mdl", [[You go around accepting hits from people.]], {"m9k_svu","m9k_honeybadger","m9k_model627", "m9k_rpg7", "lockpick"}, "hitman", 1, 65, 0, true, true, false) //Created using DeaDeye's Classmaker TEAM_THEIF = AddExtraTeam("Theif", Color(255, 102, 0, 255), "models/player/guerilla.mdl", [[You use your phone to hack these things: - Keypad - Wire Keypad - Explosive - Vehicles (disables them for 5 seconds) - Players - Hackers (others players with the hack phone, you disable their hacks for 20 seconds) - Camera (with control of view) - Lights - Lamps - Dynamite ]], {"weapon_hack_phone","lockpick","unarrest_stick"}, "theif", 3, 80, 0, true, false, false, customCheck = function(ply) return ply:GetNWString("usergroup") == "donator" end) //Created using DeaDeye's Classmaker TEAM_BANKER = AddExtraTeam("Banker", Color(0, 102, 0, 255), "models/player/magnusson.mdl", [[This class builds a bank to store your money and printers.]], {"m9k_sig_p229r"}, "banker", 3, 55, 0, false, false, false) //Created using DeaDeye's Classmaker TEAM_SWAT = AddExtraTeam("SWAT", Color(0, 51, 153, 255), "models/player/riot.mdl", [[Just like CP, but is more fit for heavily armed targets]], {"m9k_usp","m9k_vector","m9k_pkm","arrest_stick","unarrest_stick","stunstick","weaponchecker","door_ram"}, "swat", 5, 75, 0, true, true, false) //Created using DeaDeye's Classmaker TEAM_SWATLEADER = AddExtraTeam("SWAT Leader", Color(0, 51, 102, 255), "models/player/swat.mdl", [[Just like SWAT, but you are to lead the other SWAT Members]], {"m9k_deagle","m9k_m24","m9k_vector","m9k_pkm","arrest_stick","unarrest_stick","stunstick","weaponchecker","door_ram"}, "swatleader", 1, 85, 0, false, true, {TEAM_SWAT}) //Created using DeaDeye's Classmaker TEAM_GUARD = AddExtraTeam("Guard", Color(102, 0, 0, 255), "models/player/odessa.mdl", [[Your job is to be hired by someone and then guard their shops/houses.]], {"m9k_deagle","weapon_crowbar", "stunstick",}, "guard", 0, 50, 0, false, true, false) //Created using DeaDeye's Classmaker TEAM_MAYORSGUARD = AddExtraTeam("Secret Service", Color(0, 204, 255, 255), "models/player/barney.mdl", [[Just like guard, except your job is to guard the mayor and prevent him from being killed.]], {"m9k_model627","stunstick","weapon_crowbar"}, "mayorsguard", 2, 75, 0, true, true, {TEAM_GUARD}) //Created using DeaDeye's Classmaker TEAM_CAR = AddExtraTeam("Mechanic", Color(0, 204, 204, 255), "models/player/eli.mdl", [[You fix cars and refuel them.]], {"weapon_scarrefuel","weapon_scarrepair"}, "car", 0, 50, 0, false, false, false) //Created using DeaDeye's Classmaker TEAM_DRIVER = AddExtraTeam("Bus Driver", Color(255, 204, 255, 255), "models/player/mossman.mdl", [[You but a bus or taxi and drive people to where they want on the map]], {"weapon_scarrefuel"}, "driver", 2, 50, 0, false, false, false) //Created using DeaDeye's Classmaker TEAM_TRAINDRIVER = AddExtraTeam("Train Driver", Color(102, 102, 51, 255), "models/player/mossman.mdl", [[You build a train to transport people around the map via train tracks]], {}, "traindriver", 1, 45, 0, false, false, false) //Created using DeaDeye's Classmaker TEAM_TERRORIST = AddExtraTeam("Terrorist", Color(255, 255, 255, 255), "models/player/Kleiner.mdl", [[You go around terrorizing the city. Methods for no RDM/FailRP: Lay down IEDs Raid shops Hold Hostages Unarrest fellow criminals Mug Steal Vehicles ]], {"m9k_scoped_taurus","lockpick","unarrest_stick"}, "terrorist", 3, 50, 0, true, false, false) //Created using DeaDeye's Classmaker TEAM_DRUG = AddExtraTeam("Drug Dealer", Color(255, 255, 0, 255), "models/player/soldier_stripped.mdl", [[You go around and sell drugs to people]], {}, "drug", 0, 20, 0, false, false, false) //Created using DeaDeye's Classmaker TEAM_THEATRE = AddExtraTeam("Theater Manager", Color(255, 51, 51, 255), "models/player/combine_soldier.mdl", [[You can build a theater using PlayX]], {}, "theatre", 1, 120, 0, true, false, 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, [TEAM_SWAT] = true, [TEAM_SWATLEADER] = true, } /*--------------------------------------------------------------------------- Jobs that are hitmen (enables the hitman menu) ---------------------------------------------------------------------------*/ DarkRP.addHitmanTeam(TEAM_HITMAN) [/CODE] Console error: [CODE][ERROR] addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua:44: ')' expected (to close '(' at line 33) near '=' 1. unknown - addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua:0[/CODE]
You can't just do customCheck = when in the rest of the table, you're not setting the variables = to anything.
Didn't realize I had left that in, thanks
Sorry, you need to Log In to post a reply to this thread.