• Remove PlayerOptionsMenu(Sandbox)
    14 replies, posted
Hello, I want to remove the 'C' PlayerOptionsMenu, how could I do that? (Without changing the base code, if it dont works without changing the base code then tell me how to remove it with changing the base code) Thanks, deinemudda32
You mean the right clicking or the player model selection?
I mean the player model selection :) where you can set youre phys gun color or change ply:Model.
Try this: [code] list.GetForEdit( "DesktopWindows" )[ "PlayerEditor" ] = nil[/code] Somewhere clientside.
I'll test it, thx
[QUOTE=deinemudda32;44791011]I'll test it, thx[/QUOTE] Nope didnt work for me
bump
If I remember correctly overriding this hook should do the trick. [url]http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index1294.html[/url] [url]http://wiki.garrysmod.com/page/GM/OnContextMenuOpen[/url] [lua] function GM:OnContextMenuOpen( ) end [/lua] Or you return false with this hook, I can't remember which, both may work. [url]http://wiki.garrysmod.com/page/GM/ContextMenuOpen[/url] If you weren't trying to disable the entire context menu, you may not want to do this then.
I only want to remove the player model selection :(
double bump, really? Nobody knows how to handle with this :(, thats reaaaly bad!
[code] list.Set( "DesktopWindows", "PlayerEditor", {} )[/code] Somewhere clientside. Tested - works. [editline]4th June 2014[/editline] Note, that people will still be able to change their player model with cl_playermodel convar.
Ok now for idiots where do I have to put this in?
[QUOTE=Robotboy655;44998114] Somewhere clientside.[/QUOTE]
Nevermind x_x
[QUOTE=deinemudda32;44998076]double bump, really? Nobody knows how to handle with this :(, thats reaaaly bad![/QUOTE] neither do you so why are you complaining?
Sorry, you need to Log In to post a reply to this thread.