GetVehicleSirenState
attention
La fonctionnalité de type fonction a été ajoutée dans la version omp v1.1.0.2612 et ne fonctionne pas avec les versions antérieures !
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.