Squirrel/Server/Events/Vehicle/onVehicleRespawn
From Liberty Unleashed Wiki
This is called whenever a vehicle is respawned, for any reason EXCEPT respawn after explosion
Syntax
function onVehicleRespawn( vehicle )
Parameters
- vehicle - The vehicle pointer
Example
This example will print a message to the console whenever a vehicle is respawned
function onVehicleRespawn( vehicle ) { print( "Vehicle " + vehicle.ID() + " has respawned." ); }
Notes
The function vehicle.ID was used in in this example. More info about it can be found in the corresponding page.