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

# GetCustomModelPath

هشدار

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

## توضیحات

مسیر یک مدل سفارشی را دریافت می‌کنه.

| نام | توضیحات |
| --- | --- |
| modelid | آیدی مدل سفارشی که می‌خوای مسیرش رو دریافت کنی. |
| dffPath\[\] | آرایه‌ای که مسیر dff توش ذخیره می‌شه، به عنوان مرجع پاس داده می‌شه. |
| dffSize | طول مسیر dff که باید ذخیره بشه. |
| txdPath\[\] | آرایه‌ای که مسیر txd توش ذخیره می‌شه، به عنوان مرجع پاس داده می‌شه. |
| txdSize | طول مسیر txd که باید ذخیره بشه. |

## مثال‌ها

```c
new
    modelid = -2000,
    dffPath[64],
    txdPath[64];

GetCustomModelPath(modelid, dffPath, sizeof(dffPath), txdPath, sizeof(txdPath));

printf("[Custom model id %d path]\n\
    dff: %s\n\
    txd: %s",
    modelid, dffPath, txdPath);
```

## تابع‌های مرتبط

-   [AddSimpleModel](https://omp.itsneufox.com/fa/docs/scripting/functions/AddSimpleModel): یک مدل ساده سفارشی جدید اضافه می‌کنه.
-   [AddSimpleModelTimed](https://omp.itsneufox.com/fa/docs/scripting/functions/AddSimpleModelTimed): یک مدل ساده سفارشی جدید اضافه می‌کنه.
-   [IsValidCustomModel](https://omp.itsneufox.com/fa/docs/scripting/functions/IsValidCustomModel): بررسی می‌کنه که آیا آیدی مدل سفارشی معتبره یا نه.
