OnVehicleSpawn
From SA-MP Wiki
(Difference between revisions)
Revision as of 05:04, 2 February 2014 Connor Mead (Talk | contribs) ← Previous diff |
Revision as of 19:51, 23 April 2014 Ikkentim (Talk | contribs) (This is a callback(NoReturn>NoReturnCallback)) Next diff → |
||
Line 6: | Line 6: | ||
{{Param|vehicleid|The ID of the vehicle that spawned.}} | {{Param|vehicleid|The ID of the vehicle that spawned.}} | ||
- | {{NoReturn}} | + | {{NoReturnCallback}} |
<pawn> | <pawn> |
Revision as of 19:51, 23 April 2014
Description:
This callback is called when a vehicle respawns.
(vehicleid)
vehicleid | The ID of the vehicle that spawned. |
Return Values:
This callback does not handle returns.
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.