OnClientObjectMoveStart: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
(One intermediate revision by one other user not shown)
Line 1: Line 1:
__NOTOC__
__NOTOC__
{{Client event}}
{{Client event}}
This event is triggered when an object moves.
{{New feature/item|3.0159|1.5.8|20811|This event is triggered when an object starts moving.}}
 
==Source==
==Source==
The source of this event is the object which was moved.
The source of this event is the object which was moved.

Revision as of 11:15, 11 April 2021

This event is triggered when an object starts moving.

Source

The source of this event is the object which was moved.

Example

local obj = createObject(5239, -2417.22339, -606.70374, 132.56250)
moveObject(obj, 3000, -2417.22339, -606.70374, 137.56250)

addEventHandler("onClientObjectMoveStart", obj,
    function()
        outputChatBox("started moving object")
    end
)

Requirements

Minimum server version n/a
Minimum client version 1.5.8-rc20811

Note: Using this feature requires the resource to have the above minimum version declared in the meta.xml <min_mta_version> section. e.g. <min_mta_version client="1.5.8-rc20811" />

See Also

Client object events


Client event functions