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
- onClientCharacter
- onClientClick
- onClientCursorMove
- onClientDoubleClick
- onClientGUIAccepted
- onClientGUIBlur
- onClientGUIChanged
- onClientGUIClick
- onClientGUIComboBoxAccepted
- onClientGUIDoubleClick
- onClientGUIMouseDown
- onClientGUIMouseUp
- onClientGUIFocus
- onClientGUIMove
- onClientGUIScroll
- onClientGUISize
- onClientGUITabSwitched
- onClientKey
- onClientMouseEnter
- onClientMouseLeave
- onClientMouseMove
- onClientMouseWheel
- onClientPaste
Input Functions
- addCommandHandler
- bindKey
- executeCommandHandler
- getCommandHandlers
- getFunctionsBoundToKey
- getKeyBoundToFunction
- isControlEnabled
- removeCommandHandler
- toggleAllControls
- toggleControl
- unbindKey
- getAnalogControlState
- getCommandsBoundToKey
- getBoundKeys
- getKeyBoundToCommand
- getKeyState
- isCapsLockEnabled
- setAnalogControlState
- isKeyBound