GetVehicleSirenState
warning
This function was added in omp v1.1.0.2612 and will not work in earlier versions!
Description
Gets the siren state of the vehicle.
Parameters
Name | Description |
---|---|
vehicleid | The 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;
}
Related Functions
- SetVehicleParamsSirenState: Turn the siren for a vehicle on or off.
- ToggleVehicleSirenEnabled: Turn the siren for a vehicle on or off.
- IsVehicleSirenEnabled: Checks if a vehicle siren is on or off.
- GetPlayerSirenState: Gets the siren state of the player's vehicle.