Garry's Mod Wiki

Weapon:HasAmmo

  boolean Weapon:HasAmmo()

Description

Returns whether the weapon has ammo left or not. It will return false when there's no ammo left in the magazine and when there's no reserve ammo left.

This will return true for weapons like crowbar, gravity gun, etc.

Returns

1 boolean
Whether the weapon has ammo or not.