Garry's Mod Wiki

Player:GetAmmo

  table Player:GetAmmo()

Description

Returns a table of all ammo the player has.

Returns

1 table
A table with the following format

Example

Output ammo table of the default Sandbox weapon loadout.

Output:
1 = 130 2 = 6 3 = 256 4 = 256 5 = 32 6 = 36 7 = 64 8 = 3 10 = 6