• Job giving me script errors.
    4 replies, posted
TEAM_MILES = DarkRP.createJob("Hell's Angel", { color = Color(255, 131, 0, 255), model = "models/the_walking_dead_survival_instincts/daryl_dixon.mdl", description = [[In honor of Miles.]], weapons = {"weapon_glyph_crossbow", "m9k_ragingbull", "m9k_machete"}, command = "miles", max = 0, salary = 65, admin = 0, vote = false, hasLicense = true, PlayerLoadout = function(ply) ply:SetArmor(25) end, customCheck = function(ply) return CLIENT or ply:GetNWString("usergroup") == "superadmin" end, CustomCheckFailMsg = "This is a custom job for our staff team." Most of my jobs are coded like this, so I have no idea how this is fucking me.
Maybe post the error?
[ERROR] addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua:495: '}' expected (to close '{' at line 475) near 'GAMEMODE' 1. unknown - addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua:0
You're missing }) at the end of the file :v Should be: [lua] TEAM_MILES = DarkRP.createJob("Hell's Angel", { color = Color(255, 131, 0, 255), model = "models/the_walking_dead_survival_instincts/daryl_dixon.mdl", description = [[In honor of Miles.]], weapons = {"weapon_glyph_crossbow", "m9k_ragingbull", "m9k_machete"}, command = "miles", max = 0, salary = 65, admin = 0, vote = false, hasLicense = true, PlayerLoadout = function(ply) ply:SetArmor(25) end, customCheck = function(ply) return CLIENT or ply:GetNWString("usergroup") == "superadmin" end, CustomCheckFailMsg = "This is a custom job for our staff team." }) [/lua]
Fuck. Thanks T>T
Sorry, you need to Log In to post a reply to this thread.