---
title: "RemoveVehicleComponent | open.mp"
description: "یه قطعه رو از وسیله نقلیه حذف می‌کنه."
canonical: https://omp.itsneufox.com/fa/docs/scripting/functions/RemoveVehicleComponent
language: fa
---

# RemoveVehicleComponent

## توضیحات

یه قطعه رو از وسیله نقلیه حذف می‌کنه.

| نام | توضیحات |
| --- | --- |
| vehicleid | ID وسیله نقلیه. |
| [component](https://omp.itsneufox.com/fa/docs/scripting/resources/carcomponentid) | ID قطعه برای حذف. |

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

**true** - قطعه با موفقیت از وسیله نقلیه حذف شد.

**false** - قطعه حذف نشد چون وسیله نقلیه وجود نداره.

## مثال‌ها

```c
// Remove Nitro from player vehicle
new vehicleid = GetPlayerVehicleID(playerid);
RemoveVehicleComponent(vehicleid, 1010);
```

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

-   [AddVehicleComponent](https://omp.itsneufox.com/fa/docs/scripting/functions/AddVehicleComponent): اضافه کردن قطعه به وسیله نقلیه.
-   [GetVehicleComponentInSlot](https://omp.itsneufox.com/fa/docs/scripting/functions/GetVehicleComponentInSlot): بررسی اینکه وسیله نقلیه چه قطعه‌هایی داره.
-   [GetVehicleComponentType](https://omp.itsneufox.com/fa/docs/scripting/functions/GetVehicleComponentType): بررسی نوع قطعه از طریق ID.
-   [VehicleCanHaveComponent](https://omp.itsneufox.com/fa/docs/scripting/functions/VehicleCanHaveComponent): آیا قطعه روی وسیله نقلیه مجاز هست؟

## کالبک‌های مرتبط

-   [OnVehicleMod](https://omp.itsneufox.com/fa/docs/scripting/callbacks/OnVehicleMod): وقتی وسیله نقلیه تیون می‌شه صدا زده می‌شه.
-   [OnEnterExitModShop](https://omp.itsneufox.com/fa/docs/scripting/callbacks/OnEnterExitModShop): وقتی وسیله نقلیه وارد یا خارج تیون شاپ می‌شه صدا زده می‌شه.

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

-   [Car Component IDs](https://omp.itsneufox.com/fa/docs/scripting/resources/carcomponentid)
