---
title: "IsObjectMoving | open.mp"
description: "Checks if the given objectid is moving."
canonical: https://omp.itsneufox.com/th/docs/scripting/functions/IsObjectMoving
language: th
---

# IsObjectMoving

## คำอธิบาย

Checks if the given objectid is moving.

| Name | Description |
| --- | --- |
| objectid | The objectid you want to check if is moving. |

## ส่งคืน

1 if the object is moving, 0 if not.

## ตัวอย่าง

```c
if (IsObjectMoving(objectid))
{
	StopObject(objectid);
}
```

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

-   [MoveObject](https://omp.itsneufox.com/th/docs/scripting/functions/MoveObject): Move an object.
-   [StopObject](https://omp.itsneufox.com/th/docs/scripting/functions/StopObject): Stop an object from moving.
-   [OnObjectMoved](https://omp.itsneufox.com/th/docs/scripting/callbacks/OnObjectMoved): Called when an object stops moving.
