• How to add current ammo in chamber to hud?
    3 replies, posted
So im making a hud and i want to add a ammo counter. However i cant find how to add the ammo that i have in my magazine. I used [B]draw.SimpleText(ply:GetAmmoCount(ply:GetActiveWeapon():GetPrimaryAmmoType()), "Trebuchet24", 346, 27, Color(0,0,0,255))[/B] but this only gave me the ammo outside my gun. Does someone know what i need to use to get the Magazine ammo? (sorry for my bad english)
[url]http://wiki.garrysmod.com/page/Weapon/Clip1[/url] [url]http://wiki.garrysmod.com/page/Weapon/Clip2[/url] (not formatted, i know)
[QUOTE=iJohnny;50892275][url]http://wiki.garrysmod.com/page/Weapon/Clip1[/url] [url]http://wiki.garrysmod.com/page/Weapon/Clip2[/url] (not formatted, i know)[/QUOTE] I saw that but i dont get how i put this into a draw.SimpleText. any idea? (sry im new to the whole lua scripting)
[code]draw.SimpleText(ply:GetActiveWeapon():Clip1(), "Trebuchet24", 346, 27, Color(0,0,0,255))[/code]
Sorry, you need to Log In to post a reply to this thread.