Hooks/Server/playerBoughtCustomVehicle
Hook | |
Hook name | playerBoughtCustomVehicle(Player ply, table vehicleTable, Entity ent, number price) |
Description: | |
Called when a player bought a vehicle. | |
Returns: | nil |
Realm: | |
BBCode Link: | [b][url=http://wiki.darkrp.com/index.php?title=Hooks/Server/playerBoughtCustomVehicle]playerBoughtCustomVehicle hook[/url][/b] |
Parameters[edit]
- ply (Player)
- vehicleTable (table)
- ent (Entity)
- price (number)
The player.
The table (from the CustomVehicles table).
The spawned vehicle.
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.