Make commands from DarkRP only avilable to a rank in Evolve or ULX?

Hello, I need some help with setting a command ONLY avilable to a rank in Evolve (or ULX).
We say that I want to have it to the “VIP” rank, then how do I make so /buygoldprinter only works if you are in that rank?

Help please?

add this to buttom of the printer [lua]customCheck = function(ply)
return ply:IsUserGroup(“VIP”)
this is for ULX.

Oooh thx man!
Anything to evolve, I would be happier if this worked with evolve or some other way…?

I never worked with evolve so it should be:
[lua]customCheck = function(ply)
return ply:GetNWString(“EV_VIP”)


[lua]customCheck = function(ply)
return ply:GetNWString(“VIP”)

If both wont work, Sorry.

[lua]customCheck = function(ply)
return ply:GetNWString(“EV_UserGroup”) == “vip” || ply:IsAdmin()

THX!! :smiley:

Okey, do I put it in a “function” or inside “Function ENT:CreateMoneyBag”?

add this to buttom of the printer ?

Just like “that”?

If your still trying to figure this out, paste the printers code please.
I don’t really know much about the updated DerpRP.

AddEntity("Golden Printer", {
	ent = <Your Value Here>,
	model = <Your Value Here>,
	price = <Your Value Here>,
	max = <Your Value Here>,
	cmd = "/buygoldenprinter",
	customCheck = function(ply) 
		return ply:GetNWString("EV_UserGroup") == "vip" || ply:IsAdmin() 

Put this at the bottom of DarkRP/gamemode/AddEntities.lua, assuming you are on the latest revision.

Aahhh thx, will try it :3
Btw, it’s for ULX so I will just remove (“EV_UserGroup”) and edit GetNWString to GetUserGroup :3

NVM! Fixed it (below)

(Fixed)Do you know how I should make a shipment only access able by a job? Because I have been doing darkrp a long time but I don’t get this new so much… why does my durgz shipments go to EVERYONE instead of just TEAM_DRUGDEALER?

Guys, really… how should I do this? I tried as D3vine said but no success?

AddCustomShipment(“Desert eagle”, {
model = “models/weapons/w_pist_deagle.mdl”,
entity = “weapon_deagle2”,
price = 215,
amount = 10,
seperate = false,
pricesep = 215,
noship = true,
allowed = {TEAM_GUN} – change this to your drug dealer team… and voila

Ofcourse edit the other things aswell… since this is for Desert Eagle