Player:GetAmmo
Description
Returns a table of all ammo the player has.
Returns
1 table
A table with the following format
- number Key - AmmoID to be used with functions like game.GetAmmoName.
- number Value - Amount of ammo the player has of this kind.
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