How to make entities only usable by a certain job.
4 replies, posted
Hey, was wondering if someone could be kind enough to show me how to make entities restricted to only certain jobs.
For an example trying to make a Movie Theater Manager job and would like only that job to be able to us the PlayX addon/entity.
Any help is greatly appreciated!
Go inside the folder garrysmod\gamemodes\darkrp\gamemode and open addentities.lua with a text editor.
I'm not sure what gamemode, but I assume you mean DarkRP right?
[CODE]AddEntity("Basic Money printer", {
ent = "normal_money_printer",
model = "models/props_lab/reciever01a.mdl",
price = 1000,
max = 1,
cmd = "/buymoneyprinter"
})[/CODE]
Yeah DarkRp. But now I just want to make the entity only able to be bought through a certain class.