How do i disable/restrict the Context menu on my DarkRP server?
4 replies, posted
I've found this code on another thread, but i have no idea where to put it.
hook.Add("ContextMenuOpen", "SuperAdminContext", function()
if not LocalPlayer():IsSuperAdmin() then return false end
end)
I would really appreciate your help! ;)
help with what? if you know basic lua you know what it does, and where to put it.
only lets admins open the context menu.
Well the problem is: I don't know where to put it :/
seeing as the hook is clientside only, id reckon it goes in
garrysmod/lua/autorun/client/yourfile.lua
Tyty bruv
Sorry, you need to Log In to post a reply to this thread.