OnVehicleSpawn
From SA-MP Wiki
(Difference between revisions)
Revision as of 18:37, 1 October 2013 W (Talk | contribs) ← Previous diff |
Revision as of 05:04, 2 February 2014 Connor Mead (Talk | contribs) Next diff → |
||
Line 25: | Line 25: | ||
[[Category:Scripting Callbacks]] | [[Category:Scripting Callbacks]] | ||
+ | |||
[[de:OnVehicleSpawn]] | [[de:OnVehicleSpawn]] | ||
+ | [[fr:OnVehicleSpawn]] | ||
[[ru:OnVehicleSpawn]] | [[ru:OnVehicleSpawn]] |
Revision as of 05:04, 2 February 2014
Description:
This callback is called when a vehicle respawns.
(vehicleid)
vehicleid | The ID of the vehicle that spawned. |
Return Values:
This function does not return any specific values.
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 might be useful, as they're related to this callback in one way or another.
- SetVehicleToRespawn: Respawn a vehicle.
- CreateVehicle: Create a vehicle.