guiScrollPaneSetScrollBars | Multi Theft Auto: Wiki Skip to content

guiScrollPaneSetScrollBars

Client-side
Server-side
Shared

This function allows a scrollpane's scrollbars to be forced on, or returned to default.

OOP Syntax Help! I don't understand this!

Syntax

bool guiScrollPaneSetScrollBars ( ​gui-scrollpane scrollPane, ​bool horizontal, ​bool vertical )
Required arguments
  • scrollPane: The GUI scrollpane element you want to set the scrollbars of.
  • horizontal: A bool where true forces the horizontal scrollbar on, and false returns them to default.
  • vertical: A bool where true forces the vertical scrollbar on, and false returns them to default.

Returns

Returns true if the call was successfully, false otherwise.

  • bool: result

Code Examples

client
local scrollpane = guiCreateScrollPane(0.3, 0.3, 0.2, 0.2, true)
guiScrollPaneSetScrollBars(scrollpane, true, true)

See Also

GUI Functions