Or maybe you just want to respawn vehicles with these functions:
setVehicleRespawnPosition -- optional
setTimer
getElementsByType
-- getElementsByType("vehicle", resourceRoot) : to retrieve all vehicles created on the same resource whose function is)
respawnVehicle