---
title: "existproperty | open.mp"
description: "Check if a property exist."
canonical: https://omp.itsneufox.com/th/docs/scripting/functions/existproperty
language: th
---

# existproperty

## คำอธิบาย

Check if a property exist.

| Name | Description |
| --- | --- |
| id | The virtual machine to use, you should keep this zero. |
| name\[\] | The property's name, you should keep this "". |
| value | The property's unique ID. Use the hash-function to calculate it from a string. |

## ส่งคืน

True if the property exists and false otherwise.

## ตัวอย่าง

```c
if (existproperty(0, "", 123984334))
{
    //the property exists, do something
}
```

## ฟังก์ชั่นที่เกี่ยวข้องกัน

-   [setproperty](https://omp.itsneufox.com/th/docs/scripting/functions/setproperty): Set a property.
-   [getproperty](https://omp.itsneufox.com/th/docs/scripting/functions/getproperty): Get the value of a property.
-   [deleteproperty](https://omp.itsneufox.com/th/docs/scripting/functions/deleteproperty): Delete a property.
