OnClientGUIScroll
From Multi Theft Auto: Wiki
This event is fired when a GUI scrollbar is scrolled.
Parameters
element Scrolled
- Scrolled: The scrollbar element that was scrolled
Source
The source of this event is the scrollbar element that got scrolled.
Example
This example outputs a message with the new scroll position when a scrollbar is scrolled.
function OnScroll(Scrolled) outputChatBox("The new scroll position is "..guiScrollBarGetScrollPosition(Scrolled)) end addEventHandler("onClientGUIScroll",getRootElement(),OnScroll)
See Also
GUI events
- onClientGUIClick
- onClientGUIDoubleClick
- onClientGUIChanged
- onClientGUIAccepted
- onClientGUIScroll
- onClientClick
- onClientDoubleClick
- onClientKey
- onClientCharacter
- onClientMouseEnter
- onClientMouseLeave
- onClientMouseMove
- onClientMouseWheel
- onClientCursorMove
- onClientGUIMouseDown
- onClientGUIMouseUp
- onClientGUIMove
- onClientGUISize
- onClientGUITabSwitched
Client event functions
- addEvent
- addEventHandler
- cancelEvent
- removeEventHandler
- triggerEvent
- triggerServerEvent
- wasEventCanceled
FROM VERSION 1.3.1 ONWARDS