Garry's Mod Wiki


  boolean GM:PostEntityFireBullets( Entity entity, table data )


Called every time a bullet pellet is fired from an entity.

This hook is called directly from Entity:FireBullets. Due to this, you cannot call Entity:FireBullets inside this hook or an infinite loop will occur crashing the game.


1 Entity entity
The entity that fired the bullet
2 table data
The bullet data. Contains the following keys:

From Bullet structure:

  • AmmoType, Tracer, Damage, Force, Attacker, TracerName.


1 boolean
Return false to suppress the bullet.