guiGridListSetScrollBars | Multi Theft Auto: Wiki Skip to content

guiGridListSetScrollBars

Client-side
Server-side
Shared

This function allows a gridlist's scrollbar to be forced on, or returned to default.

OOP Syntax Help! I don't understand this!

Syntax

bool guiGridListSetScrollBars ( ​gui-gridlist guiGridlist, ​bool horizontalBar, ​bool verticalBar )
Required arguments
  • guiGridlist: The GUI gridlist you wish to change the state of scrollbars.
  • horizontalBar: A bool where true forces the horizontal scrollbar on, and false returns them to default.
  • verticalBar: A bool where true forces the verical scrollbar on, and false returns them to default.

Returns

Returns true if the scrollbars were successfully set, false otherwise.

  • bool: result

Code Examples

client

This example creates a gridlist and checks if it's created then sets the scroll bars.

local gridlist = guiCreateGridList(332, 195, 286, 249, false)
if (gridlist) then
guiGridListSetScrollBars(gridlist, true, true)
end

See Also

GUI Functions