---
title: "IsVehicleDead | open.mp"
description: "چک کردن اینکه ماشین مرده یا نه."
canonical: https://omp.itsneufox.com/fa/docs/scripting/functions/IsVehicleDead
language: fa
---

# IsVehicleDead

هشدار

This function was added in omp v1.1.0.2612 and will not work in earlier versions!

## توضیحات

چک کردن اینکه ماشین مرده یا نه.

## پارامترها

| نام | توضیحات |
| --- | --- |
| vehicleid | ID ماشین. |

## مقادیر برگشتی

**true** - ماشین مرده.

**false** - ماشین مرده نیست.

## مثال‌ها

```c
if (IsVehicleDead(vehicleid))
{
    // Vehicle is dead
}
else
{
    // Vehicle is not dead
}
```

## توابع مرتبط

-   [SetVehicleDead](https://omp.itsneufox.com/fa/docs/scripting/functions/SetVehicleDead): تنظیم ماشین به حالت مرده.
