OnDgsPositionChange

From Multi Theft Auto: Wiki

This event is triggered each time the position of a DGS element changed.

Parameters

None

Source

The source of this event is the DGS element whose position has changed.

Example

This example would output to the chatbox what the player moved.

DGS = exports.dgs

local window = DGS:dgsCreateWindow(200,200,600,400,"Test Window",false)

addEventHandler("onDgsPositionChange",root,function()
	outputChatBox("You have moved :"..DGS:dgsGetType(source))
end)

See Also

DGS events

Plugin

Media

Color Picker

QRCode

Client event functions