• Recreate "ammo section" of HUD?
    1 replies, posted
Basically, I want to move the "ammo section" of the HUD, but keep the current design. The best way I could think of doing this is to completely hide it, and reproduce it. What would be the best way to do that?
This should hide the current Ammo and Secondary Ammo then creates a function for you to draw your own new ammo box inside [lua]/*--------------------------------------------------------- Hiding The Normal HUD ---------------------------------------------------------*/ function HideHUD( name ) if (name == "CHudAmmo" or name == "CHudSecondaryAmmo") then return false end end hook.Add( "HUDShouldDraw", "HideHUD", HideHUD) /*--------------------------------------------------------- The HUD ---------------------------------------------------------*/ function CustomHUD() if !LocalPlayer():Alive() then return end if(LocalPlayer():GetActiveWeapon() == NULL) then return end --HUD Code here end hook.Add("HUDPaint", "CustomHUD", CustomHUD)[/lua]
Sorry, you need to Log In to post a reply to this thread.