OnDgsMouseEnter

From Multi Theft Auto: Wiki

This event is fired when the user moves the mouse over a DGS element.

Parameters

int absoluteX, int absoluteY, element leftGUI
  • absoluteX: the X position of the mouse cursor, in pixels, measured from the left side of the screen.
  • absoluteY: the Y position of the mouse cursor, in pixels, measured from the top of the screen.
  • leftGUI: the dgs element that was switched from, or nil if it doesn't exist

Source

The source of this event is the DGS element that was pointed at.

Example

This example shows a message when you move over a DGS element.

addEventHandler( "onDgsMouseEnter", root, function(aX, aY)
	outputChatBox( "You're pointing at a DGS element at ("..tostring(aX)..", "..tostring(aY)..")")
end)

See Also

DGS events

Plugin

Media

Color Picker

Client event functions