• Help disabling Q Menu for certain ranks and jobs?
    3 replies, posted
I want to remove Q menu access from all users except from those that a certain job or are admin. What would be the best way of doing this? This is for the DarkRP Gamemode. Thanks!
http://wiki.garrysmod.com/page/GM/OnSpawnMenuOpen and Player/IsAdmin there's even an example in the first page
What about adding it to jobs?
local ValidJobs = {TEAM_CITIZEN, TEAM_HOBO} if table.HasValue(ValidJobs, ply:Team()) then -- Do stuff end With the hook G😹nz😻 gave you, and the code above you should be able to work it out.
Sorry, you need to Log In to post a reply to this thread.