Hooks/Server/playerBoughtPistol
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: |
![]() |
BBCode Link: | [b][url=http://wiki.darkrp.com/index.php?title=Hooks/Server/playerBoughtPistol]playerBoughtPistol hook[/url][/b] |
Parameters[edit]
- ply (Player)
- weaponTable (table)
- ent (Weapon)
- price (number)
The player.
The table (from the CustomShipments table).
The spawned weapon.
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.