ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Shared functions
  3. stopObject

Function

stopObject

Server and clientObjectsIdentical to MTA:SA

Stops a movement started with moveObject; the object stays where it was at that moment.

Syntax

bool stopObject(object theobject)

Arguments

theobjectobject
The object.

Returns

true on success.

Example

local lift = createObject(3095, 0, 0, 3)
moveObject(lift, 10000, 0, 0, 30)
setTimer(function() stopObject(lift) end, 4000, 1)

See also