guiGridListSetScrollBars | Multi Theft Auto: Wiki Skip to content

guiGridListSetScrollBars

Client-side
Server-side
Shared

Manual Review Required

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


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 ( element 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

  • bool: value

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

Code Examples

shared

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

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

See Also

GUI Functions