• Inventory Editing
    4 replies, posted
Hi, does anyone know how to change how the inventory looks? Whenever the player scrolls down their mouse wheel I want to make it so that the weapon chooser window that pops up looks different. Is there any way for me to do that?
The inventory? What inventory? Like, the Q menu.
When you are scrolling with your mouse to choose your weapon. I want to make that into a type of inventory type thing, or if I can't do that, disable it somehow.
[QUOTE=Tsujimoto18;52630412]When you are scrolling with your mouse to choose your weapon. I want to make that into a type of inventory type thing, or if I can't do that, disable it somehow.[/QUOTE] I don't know exactly what you mean with "make that into a type of inventory" but, if you want to hide the default weapon choosing, you can do the same as TTT does for example. By using the [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/GM/PlayerBindPress]GM:PlayerBindPress[/url] hook, returning true when you either press the "invnext" and "invprev" binds, and handling the weapon changing yourself serverside to the player with the [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/Player/SelectWeapon]Player:SelectWeapon[/url] function. [editline]30th August 2017[/editline] Oh, and also hiding the default weapon swithc with the hook [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/GM/HUDShouldDraw]GM:HUDShouldDraw[/url] and the HUD element being "CHudWeaponSelection"
Thanks so much man, you have no idea how much this helps.
Sorry, you need to Log In to post a reply to this thread.