IsVehicleSirenEnabled
هشدار
This function was added in omp v1.1.0.2612 and will not work in earlier versions!
توضیحات
چک میکنه که آژیر ماشین روشنه یا خاموش.
پارامترها
نام | توضیحات |
---|---|
vehicleid | ID ماشینی که باید چک بشه. |
مقادیر برگشتی
true - آژیر ماشین روشنه.
false - آژیر ماشین خاموشه.
مثالها
if (IsVehicleSirenEnabled(vehicleid))
{
// Vehicle siren is on
}
else
{
// Vehicle siren is off
}
توابع مرتبط
- SetVehicleParamsSirenState: روشن یا خاموش کردن آژیر ماشین.
- ToggleVehicleSirenEnabled: روشن یا خاموش کردن آژیر ماشین.
- IsVehicleSirenEnabled: چک کردن اینکه آژیر ماشین روشنه یا خاموش.