• Replacing GM:ShowHelp()
    5 replies, posted
Does anyone know how to replace that? I am making a gamemode derived from Sandbox and I want to change that to something else.
[b][url=wiki.garrysmod.com/?title=Gamemode.ShowHelp]Gamemode.ShowHelp [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] Use the gamemode hook ShowHelp to define what is called. If you return anything inside of your new function it will stop all other ShowHelp hooks from being called, effectively replacing them.
It doesn't work.
Yes it does.
[QUOTE=Gbps;20424749]Yes it does.[/QUOTE] [img]http://www.facepunch.com/fp/rating/heart.png[/img] [QUOTE=Hyperion;20424742]It doesn't work.[/QUOTE] You're not trying hard enough. :smile:
[lua]function GM:ShowHelp( ply ) --Your shit here end [/lua]
Sorry, you need to Log In to post a reply to this thread.