---
title: "SetVehicleDead | open.mp"
description: "设置车辆为损毁状态。"
canonical: https://omp.itsneufox.com/zh-CN/docs/scripting/functions/SetVehicleDead
language: zh-CN
---

# SetVehicleDead

注意

这个函数是在omp v1.1.0.2612中添加的，在以前的版本中不起作用！

注意

此函数暂未实现。

## 描述

设置车辆为损毁状态。

## 参数

| 参数 | 说明 |
| --- | --- |
| vehicleid | 要设置的车辆 ID |
| bool:dead | **true**表示损毁状态，**false**表示正常状态 |

## 示例

```c
SetVehicleDead(vehicleid, true);
```

## 相关函数

-   [IsVehicleDead](https://omp.itsneufox.com/zh-CN/docs/scripting/functions/IsVehicleDead): 检查车辆是否处于损毁状态
