OnVehicleSpawn
Description:
Callback OnVehicleSpawn is called when a vehicle respawns.
Parameters:
(vehicleid)
int | vehicleid | The ID of the vehicle that spawned. |
Return Values:
- 0 - Will prevent other filterscripts from receiving this callback.
- 1 - Indicates that this callback will be passed to the next filterscript.
- It is always called first in filterscripts.
Examples:
public OnVehicleSpawn(vehicleid) { printf("Vehicle %i spawned!",vehicleid); return 1; }
Related Callbacks
The following callbacks might be useful as well, as they are related to this callback in one way or another.
- OnVehicleDeath: Called when a vehicle is destroyed.
- OnPlayerSpawn: Called when a player spawns.
Related Functions
The following functions may be useful, as they are related to this function in one way or another.
- SetVehicleToRespawn: Respawn a vehicle.
- CreateVehicle: Create a vehicle.