Hello. I am very new to lua so im not sure how to do this
What code do i need to disable these menus and where do i put it?
The best way to do something when very new to lua is to research it yourself.
Use the terms : Gmod Lua whilst googling, An answer will come up.
You can always go to gmod wiki to learn ... or go to the home page of darkrp for your case.
And DarkRP doesnt have its own Context Menu and Spawn menu, they can be disabled using wiki.garrysmod.com/page/GM/ContextMenuOpen just make sure to research before coming here, seriously, we don't tend to spoon feed noobies. This shall be your lesson!
If you do not know how to setup the gmod addon file structure please leave and go learn that, or just go watch a tutorial... all I had to do was type into the search bar on gmod wiki..
AddCSLuaFile()
-- Found by research at
-- wiki.garrysmod.com/page/GM/ContextMenuOpen
hook.Add('OnContextMenuOpen', 'NoContext4u', function()
return false
end)
-- Found by research at
-- http://wiki.garrysmod.com/page/GM/OnSpawnMenuOpen
hook.Add( "OnSpawnMenuOpen", "SpawnMenuWhitelist", function()
return false
end )
Thank you
Sorry, you need to Log In to post a reply to this thread.