DarkRP Job Categories, need help finishing the code
0 replies, posted
Why wont this work? It works absolutely fine in Liquid RP (a DarkRP edit), but In DarkRP it just spits out errors...
So what I did:
1. added:
[CODE]cat = "Criminals",[/CODE]
or whatever to every job in the shared.lua
2. added:
[CODE]AddJobCat("Lawful", "icon16/vcard.png")
AddJobCat("Criminals", "icon16/gun.png")
AddJobCat("Dealers", "icon16/cart.png")
AddJobCat("Other", "icon16/page.png")[/CODE]
under all the jobs in shared.lua
3. added:
[CODE]RPJobCat = {}
function AddJobCat(name, icon)
newCat = {Name = name, Icon = icon}
table.insert(RPJobCat, newCat)
end[/CODE]
to MakeThings.lua
4. Messed with some derma to adjust the F4 menu
Everything workings in LiquidRP but step 3 gives me errors in regular DarkRP.
Please help, anything is appreciated! :)
EDIT:
i also added "cat," to:
[CODE]function AddExtraTeam(Name, colorOrTable, model, Description, Weapons, command, cat, maximum_amount_of_this_class, Salary, admin, Vote, Haslicense, NeedToChangeFrom, CustomCheck)
[/CODE]
as "cat = cat," here:
[CODE]local CustomTeam = tableSyntaxUsed and colorOrTable or
{color = colorOrTable, model = model, description = Description, weapons = Weapons, command = command, cat = cat,
max = maximum_amount_of_this_class, salary = Salary, admin = admin or 0, vote = tobool(Vote), hasLicense = Haslicense,
NeedToChangeFrom = NeedToChangeFrom, customCheck = CustomCheck
}[/CODE]
Sorry, you need to Log In to post a reply to this thread.