• Darkrp Custom Jobs error
    3 replies, posted
I have a darkRP server and I'm completely new to LUA and I was wondering what was causing this lua error [ERROR] gamemodes/darkrp/gamemode/shared.lua:224: '}' expected (to close '{' at line 216) near 'command' 1. unknown - gamemodes/darkrp/gamemode/shared.lua:0 The lines the error is reffering to is my custom job "swatsniper" I don't know what's wrong so can I get one of you to help me? //ADD CUSTOM TEAMS UNDER THIS LINE: TEAM_SS = AddExtraTeam("Swat Sniper", { color = Color(0, 45, 100, 255), model = "models/player/gasmask.mdl", description = [[Vip only. You are a highly trained SWAT sniper who takes down highly profile criminals. Assist in SWAT raids. This job is not an exscuse to RDM.]], weapons = {"weapon_G3/SG-1", "weapon_P228", "arrest_stick", "unarrest_stick", "stunstick"} command = "Swatsniper", max = 2, salary = 80, admin = 0, vote = true, hasLicense = false NeedToChangeFrom = TEAM_POLICE })
You forgot a comma at the end of the line starting with weapons =
Thank you! [editline]24th January 2013[/editline] Thanks, I restarted my server and went Swat Sniper but the 2 sniper and the p228 I didn't have the sniper or the P228
You need to add the number "2" to the end of your weapon name(s). Example: weapon_p2282 instead of weapon_p228. Atleast this is what i think, im on my iPad atm, so i cannot check my files for my server.
Sorry, you need to Log In to post a reply to this thread.