---
title: "GetVehiclePaintjob | open.mp"
description: "ID paintjob وسیله نقلیه رو دریافت می‌کنه."
canonical: https://omp.itsneufox.com/fa/docs/scripting/functions/GetVehiclePaintjob
language: fa
---

# GetVehiclePaintjob

هشدار

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

## توضیحات

ID paintjob وسیله نقلیه رو دریافت می‌کنه.

## پارامترها

| نام | توضیحات |
| --- | --- |
| vehicleid | ID وسیله نقلیه. |

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

[ID paintjob](https://omp.itsneufox.com/fa/docs/scripting/resources/paintjobs) رو برمی‌گردونه.

## مثال‌ها

```c
public OnGameModeInit()
{
    new vehicleid = CreateVehicle(560, 2096.1917, -1328.5150, 25.1059, 0.0000, 6, 0, 100);
    ChangeVehiclePaintjob(vehicleid, 2);

    new paintjob = GetVehiclePaintjob(vehicleid);
    // paintjob = 2
    return 1;
}
```

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

-   [ChangeVehiclePaintjob](https://omp.itsneufox.com/fa/docs/scripting/functions/ChangeVehiclePaintjob): تغییر paintjob یه وسیله نقلیه
