guiScrollBarGetScrollPosition | Multi Theft Auto: Wiki Skip to content

guiScrollBarGetScrollPosition

Client-side
Server-side
Shared

This page is incomplete! Help wanted!

Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.


This function gets the scroll amount of a scrollbar as a percentage.

Syntax

guiScrollBarGetScrollPosition ( )

Code Examples

client

This example outputs a message with the new scroll position when a scrollbar is scrolled.

function OnScroll( )
outputChatBox( "The new scroll position is " .. guiScrollBarGetScrollPosition( source ) )
end
addEventHandler( "onClientGUIScroll", root, OnScroll )

See Also

GUI Functions