DarkRP How to make an entity for donators

Hey guys I need help to make my money printers VIP only with a message popping up saying “This money printer is for VIP’s only”.
Can anyone help, please? :smile:

This is the wrong section, and as much as I’d like to help you greedily force your players to pay money to your server to get basic functions of gameplay, I’m going to have to decline. Just run a check when purchasing the printer that checks if the player is ranked donater.

add this after the line:

[lua]customCheck = function(ply)return ply:IsUserGroup(“donator”)
end[/lua]

only donators can see this… but it works :slight_smile: if you want also admin can use it

[lua]customCheck = function(ply)return ply:IsUserGroup(“donator”) or ply:IsUserGroup(“admin”)
end[/lua]

if you want donator,admin,superadmin to be able to use:
[lua]customCheck = function(ply)return ply:IsUserGroup(“donator”) or ply:IsUserGroup(“superadmin”)
end[/lua]

Where do I put this?

In the garrysmod/gamemodes/darkrp/gamemode/addentities.lua under the Entity you want donator only.

The last code snippet is for donators and superadmins… Admins can’t use that.
Also, he should use: [lua]ply:IsAdmin() – (for admins and superadmins)[/lua] or: [lua] ply:IsSuperAdmin() – (for superadmins) [/lua]

yeah i know, mistype…