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.

Page Links


Special Pages


Wikis

?

Render Time: 34ms

DB GetPage 6
Generate Html 2
SaveChanges (1) 11
Render Body 0
Render Sidebar 12