Is there a command to get the max ammount of bullets you cant have in a clip? cant find it in the wiki
i want this for a custom HUD.
[editline]01:53AM[/editline]
okey ive come up with an idea that may work but i cant make it work.
it will write a total value if bullets in clip is greater then total variable
everytime you change your weapon it will reset.
local mag_left = client:GetActiveWeapon():Clip1() // How much ammunition you have inside the current magazine
local total = total or 0
if mag_left > total then
local total = mag_left
end
if weapon != client:GetActiveWeapon() then
local weapon = client:GetActiveWeapon()
total = 1
end