SetVehicleToRespawn

Tags: vehicle

Description

Sets a vehicle back to the position at where it was created.

Name Description
vehicleid The ID of the vehicle to respawn

Returns

1: The function executed successfully.

0: The function failed to execute. The vehicle does not exist

Examples

// Respawns the first vehicle.
SetVehicleToRespawn(1);
for(new i = GetVehiclePoolSize(); i > 0; i--)
{
	SetVehicleToRespawn(i);
}
  • CreateVehicle: Create a vehicle.
  • DestroyVehicle: Destroy a vehicle.