• Darkrp Donator class
    4 replies, posted
how do you make it so every one can see it but only donator or vip can use it, in the f4 menu. when i open up the jobs tab only i can see it and other admins/donators but in the ulx the users (group) cant see it in there jobs and i want them to be able to see it and when they click on it they will see a msg that pops up and says "donator only".
See what, a tab? Use ply.CheckGroup("whatevergroupyouwant") boolean function for all your ULX user group needs? Give atleast some code, you are being really confusing...
You should seriously look deeper.
Expample [CODE]AddEntity("Upgradeable Donator Money Printer", { ent = "donator_money_printer", model = "models/props_lab/reciever01b.mdl", price = 1000, max = 2, cmd = "/buydonatormoneyprinter", allowed = {TEAM_CORLELEADER, TEAM_MOB, TEAM_CITIZEN, TEAM_GUN, TEAM_MEDIC, TEAM_HITMAN, TEAM_SEC, TEAM_GANG, TEAM_CORLE, TEAM_TAXI} customCheck = function(ply) return ply:GetUserGroup()=="donator" or ply:IsAdmin() end })[/CODE]
[QUOTE=maxk1993;39450682]Expample [lua]AddEntity("Upgradeable Donator Money Printer", { ent = "donator_money_printer", model = "models/props_lab/reciever01b.mdl", price = 1000, max = 2, cmd = "/buydonatormoneyprinter", allowed = {TEAM_CORLELEADER, TEAM_MOB, TEAM_CITIZEN, TEAM_GUN, TEAM_MEDIC, TEAM_HITMAN, TEAM_SEC, TEAM_GANG, TEAM_CORLE, TEAM_TAXI} --You forgot a comma customCheck = function(ply) return ply:GetUserGroup()=="donator" or ply:IsAdmin() end })[/lua][/QUOTE] You forgot a comma
Sorry, you need to Log In to post a reply to this thread.