I had a surprisingly difficult time finding this, and I’m still not able to get it quite right.
Basically, I want only specific ranks to be able to possess props. When a non-donator rank tries to possess a prop, I want nothing to happen.
I went to propspec.lua, and added the following, under the function PROPSPEC.Key(ply, key):
if ply:IsUserGroup("regular") then PROPSPEC.End(ply) return false end
This made it so that, as a regular (and therefore not a donator), you could hit E on the prop, and it would bring you to the possession POV, but as soon as you pressed any key, it would immediately put you back to spectating.
While I understand this likely has something to do with PROPSPEC.End(ply), I don’t know what I could do to make it the way I mentioned above. I’ve seen it done before, I just have no idea how to execute it.
Thanks in advance.