Hooks/Server/playerBoughtPistol

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

Parameters

  1. ply (Player)
  2. The player.

  3. weaponTable (table)
  4. The table (from the CustomShipments table).

  5. ent (Weapon)
  6. The spawned weapon.

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

Return values

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