• custom job error
    2 replies, posted
i have this code and when i run it it says error jobs.lua20: expected near "arrest stick" and im thinking that the arrest stick is only for cp but my class team is TEAM_POLICE and the cp weapons do not work on it. also if i delete the arrest stick it says battering ram! its a donator class and i made it swat. I just need some feed back! thanks!!!!! [CODE]TEAM_POLICE = AddExtraTeam("SWAT", { color = Color(0, 0, 0, 102), model = "models/player/swat.mdl", " models/player/riot.mdl", description = [[You are S.W.A.T. You take you own orders and back the police up with your heavy reinforcements! You still have to follow the cp rules.]], weapons = {"stunstick", "door_ram", "weaponchecker" "arrest_stick", "unarrest_stick", "weapon_medkit", "m9k_spas12" }, command = "swat", max = 10, salary = 200, admin = 0, vote = false, hasLicense = true, customCheck = function(ply) return ply:IsUserGroup("donator") or ply:IsSuperAdmin() end })[/CODE]
You missed a comma in your weapons table. You need to separate your strings by a comma in a table.
fuck i didn't see that duh. thanks SO MUCH BRO!
Sorry, you need to Log In to post a reply to this thread.