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.

PrintTable(player.GetByID(1):GetAmmo())
Output:
1 = 130 2 = 6 3 = 256 4 = 256 5 = 32 6 = 36 7 = 64 8 = 3 10 = 6

Page Links


Special Pages


Wikis

?

Render Time: 36ms

DB GetPage 4
Generate Html 4
SaveChanges (1) 13
Render Body 0
Render Sidebar 12