• DarkRP Custom Job Lua Error
    2 replies, posted
Okay, so I'm currently developing a DarkRP Server, I got everything perfectly fine... I just need to add some jobs. So I get there, and I finally upload the edited shared.lua, I then restart the server and I enter the server. But I then get kicked for "Too many Lua errors! Sorry!" This is what the console came up with.. [ERROR] gamemodes/darkrp/gamemode/shared.lua:257: ')' expected (to close '(' at line 256) near '=' TEAM_ADMIN = AddExtraTeam("Admin On Duty", { color = Color(255, 0, 0, 0), model = "models/player/corpse1.mdl", description = [[The admins that are on have to be this if they are going to be citizen. (Super Admin/Admin Only)]], weapons = {"weapon_ak472"}, command = "admin", max = 5, admin = 2, vote = false, hasLicense = true }) TEAM_HITMAN = AddExtraTeam("Hitman", Color = (0,0,51,0), model = "models/player/suits/male_07.mdl", descrpition = [[Get paid to kill people your prices must only be over $50.00"]] wepons = lockpick", "weapon_deagle", "keypad_cracker", "keys", "pocket"}, comman = "hitman", max = 3, admin = 0, vote = false, hasLicencs = false }) [highlight](User was banned for this post ("wrong section" - postal))[/highlight]
I went ahead and fixed the whole thing for you. Next time post in developer discussion, you are more likely to get help there. [CODE]TEAM_ADMIN = AddExtraTeam("Admin On Duty", { color = Color(255, 0, 0, 0), model = Model("models/player/corpse1.mdl"), description = [[The admins that are on have to be this if they are going to be citizen. (Super Admin/Admin Only)]], weapons = {"weapon_ak472"}, command = "admin", max = 5, admin = 2, vote = false, hasLicense = true }) TEAM_HITMAN = AddExtraTeam("Hitman", { Color = Color(0,0,51,0), model = Model("models/player/suits/male_07.mdl"), descrpition = [[Get paid to kill people your prices must only be over $50.00"]], wepons = lockpick", "weapon_deagle", "keypad_cracker", "keys", "pocket"}, comman = "hitman", max = 3, admin = 0, vote = false, hasLicencs = false })[/CODE]
Thanks!!!!:smile:
Sorry, you need to Log In to post a reply to this thread.