onClientGUIScroll
Client-side
Server-side
Shared
This event is fired when a GUI scrollbar is scrolled.
Parameters
element scrolled
- scrolled: the scrollbar element that was scrolled.
Source
element: The source of this event is the scrollbar element that got scrolled.
Code Examples
client
This example outputs a message with the new scroll position when a scrollbar is scrolled.
function onClientGUIScroll(scrollBar) outputChatBox("The new scroll position is "..guiScrollBarGetScrollPosition(scrollBar))endaddEventHandler("onClientGUIScroll", root, onClientGUIScroll)
See Also
Input Events
- onClientClick
- onClientDoubleClick
- onClientCursorMove
- onClientCharacter
- onClientGUIAccepted
- onClientGUIChanged
- onClientGUIBlur
- onClientGUIClick
- onClientGUIComboBoxAccepted
- onClientGUIDoubleClick
- onClientGUIMove
- onClientGUIFocus
- onClientGUIMouseUp
- onClientGUIScroll
- onClientGUIMouseDown
- onClientGUITabSwitched
- onClientGUISize
- onClientKey
- onClientMouseEnter
- onClientMouseLeave
- onClientMouseMove
- onClientMouseWheel
- onClientPaste
Input Functions
- addCommandHandler
- bindKey
- executeCommandHandler
- getCommandHandlers
- getFunctionsBoundToKey
- getKeyBoundToFunction
- isControlEnabled
- removeCommandHandler
- toggleControl
- unbindKey
- toggleAllControls
- getAnalogControlState
- getBoundKeys
- getCommandsBoundToKey
- getKeyBoundToCommand
- isCapsLockEnabled
- getKeyState
- setAnalogControlState
- isKeyBound