The open.mp logo
Home
FAQ
Forums
Servers
Partners
Docs
Blog

warning Not Translated

This page has not been translated into the language that your browser requested yet. The English content is being shown as a fallback.

If you want to contribute a translation for this page then please click here.

IsObjectMoving

warning

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

Description

Checks if the given objectid is moving.

NameDescription
objectidThe objectid you want to check if is moving.

Returns

1 if the object is moving, 0 if not.

Examples

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

Related Functions

  • MoveObject: Move an object.
  • StopObject: Stop an object from moving.
  • OnObjectMoved: Called when an object stops moving.

Community

  • Discord
  • Instagram
  • Twitter
  • Twitch
  • YouTube
  • Facebook
  • VK

More

  • SA-MP
  • Blog
  • GitHub