Garry's Mod Wiki


game.AddAmmoType( table ammoData )


Adds a new ammo type to the game.

You can find a list of default ammo types here.

This function must be called shared or you will have unexpected problems.
This function must be called in GM:Initialize.
There is a limit of 128 ammo types, including the default ones.


1 table ammoData
The attributes of the ammo. See the Structures/AmmoData.


Add an ammo type

game.AddAmmoType({ name = "ammo_9mm_max", dmgtype = DMG_BULLET, tracer = TRACER_LINE, plydmg = 0, npcdmg = 0, force = 2000, minsplash = 10, maxsplash = 5 })

Page Links

Special Pages



Render Time: 34ms

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