跳到主要內容

GetVehicleSirenState

注意

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

Description​

Gets the siren state of the vehicle.

Parameters​

NameDescription
vehicleidThe ID of the vehicle.

Return Values​

Returns the vehicle siren state.

Examples​

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
new bool:sirenState = GetVehicleSirenState(vehicleid);

SendClientMessage(playerid, 0xFFFF00FF, "Vehicle siren state: %s", sirenState ? "On" : "Off");
return 1;
}