From DarkRP
Jump to navigation Jump to search
Hook name playerBoughtAmmo(Player ply, table ammoTable, Weapon ent, number price)
Called when a player buys some ammo.
Returns: nil
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Hooks/Server/playerBoughtAmmo]playerBoughtAmmo hook[/url][/b]


  1. ply (Player)
  2. The player.

  3. ammoTable (table)
  4. The table (from the AmmoTypes table).

  5. ent (Weapon)
  6. The spawned ammo entity.

  7. price (number)
  8. The eventual price.

Return values[edit]

This hook does not accept return values. You can still return a value to override the default implementation of this hook.