Can someone explain to me how i would go about making a custom crosshair for my hud instead of the default crosshair that comes with gmod?
This is a custom hud for my server community.
You just need to use the [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/GM/HUDPaint]GM:HUDPaint[/url] hook to draw whatever crosshair you want, e.g. [URL="https://wiki.garrysmod.com/page/surface/DrawLine"]some lines[/URL]
Well ofc i know that, but how do i make the weapons popup and when u scroll the weapons scroll.
[editline]20th June 2016[/editline]
Would be cool if you could give me the default gmod hud
or tell me where it is so i can take a look at how they did it
You said weapon crosshair... the weapon selection menu isn't a crosshair. Also, it's code is internal, so you'll probably have to remake the entire thing from scratch unless you copy someone else's weapon selection thing... I'll try to find someone else's, hang on...
Thanks
So nobody gonna help..
[QUOTE=SlayerLegendz;50555807]So nobody gonna help..[/QUOTE]
You're quite impatient. No one responded for four hours, doesn't mean you're forgotten of.
If you need a weapon selection override, go into the Trouble in Terrorist Town gamemode files and see how it's weapon switcher is done.
Is it terrortown/gamemode/cl_hud.lua?
Ill check it out, thanks for the help :)
[QUOTE=SlayerLegendz;50560122]Is it terrortown/gamemode/cl_hud.lua?
Ill check it out, thanks for the help :)[/QUOTE]
It's a separate file. It's cl_wepswitch.lua if I'm not mistaken (don't quote me on that).
Sorry, you need to Log In to post a reply to this thread.