guiCreateScrollBar | Multi Theft Auto: Wiki Skip to content

guiCreateScrollBar

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 creates a GUI scrollbar. You can use the functions guiScrollBarSetScrollPosition and guiScrollBarGetScrollPosition to read and modify the scrollbar's scroll.

Syntax

guiCreateScrollBar ( )

Code Examples

client
function scBar()
Window = guiCreateWindow(0.3664, 0.2764, 0.3508, 0.3477, "Window", true)--We create a window.
guiCreateScrollBar(15, 81, 24, 245, false, false, Window)--We create a scrollbar as a child of 'Window'
end
addEventHandler("onClientResourceStart", resourceRoot, scBar) --We handle it with 'onClientResourceStart' event.

See Also

GUI Functions