Hey, I was wondering something. How to make a HUD buyable? I am making a gamemode, and I want the ammo HUD to be buyable in the shop menu. How would I do this? Thanks.
BTW: Here is the hook.Add:
[lua]hook.Add( "HUDPaint", "ammo", ammo )[/lua]
Well you could simply add a condition in the code you use to make it show up.
For example you could check if ply.BoughtHUD is true before drawing it and set it to true when the player purchases it.
Well, what I want it to do is this:
You press a button on a VGUI, and the HUD appears
It also subtracts the amount the HUD cost from the amount of money you have
The HUD stays until you log off. So if you die, you keep it.
Sorry, you need to Log In to post a reply to this thread.