跳到主要內容

GetVehicleRespawnTick

注意

此函式於 omp v1.1.0.2612 版本中新增,在更早的版本中無法使用!

Description​

Get the respawn tick of a vehicle.

Parameters​

NameDescription
vehicleidThe ID of the vehicle.

Return Values​

Returns respawn tick in milliseconds.

Examples​

public OnGameModeInit()
{
new vehicleid = CreateVehicle(560, 2096.1917, -1328.5150, 25.1059, 0.0000, 1, 8, 60);

new respawnTick = GetVehicleRespawnTick(vehicleid);
printf("Vehicle ID %d respawn tick: %d ms", vehicleid, respawnTick);
return 1;
}