---
title: "GetObjectModel | open.mp"
description: "Kunin ang model ID ng isang object (CreateObject)."
canonical: https://omp.itsneufox.com/fil/docs/scripting/functions/GetObjectModel
language: fil
---

# GetObjectModel

warning

This function was added in SA-MP 0.3.7 and will not work in earlier versions!

## Description

Kunin ang model ID ng isang object (CreateObject).

| Name | Description |
| --- | --- |
| objectid | Ang ID ng object na kukunin ang model |

## Returns

Ang model ID ng object.

\-1 kung walang object.

## Examples

```c
new objectid = CreateObject(1234, 0, 0, 0, 0, 0, 0);
new modelid = GetObjectModel(objectid);
```

## Related Functions

-   [GetPlayerObjectModel](https://omp.itsneufox.com/fil/docs/scripting/functions/GetPlayerObjectModel): Kunin ang model ID ng isang player-object.
