guiGridListSetSelectedItem | Multi Theft Auto: Wiki Skip to content

guiGridListSetSelectedItem

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 selects an item from a gridlist. If you wish to deselect whatever item is selected, pass 0 as both the rowIndex and columnIndex arguments.

OOP Syntax Help! I don't understand this!

Syntax

bool guiGridListSetSelectedItem ( element gridList, int rowIndex, int columnIndex, [ bool bReset = true ] )
Required Arguments
  • gridList: the grid list you want to select an item from
  • rowIndex: the row you want to select (index 0 is the first row)
  • columnIndex: the column you want to select (index 1 is the first column)
Optional Arguments

NOTE: When using optional arguments, you might need to supply all arguments before the one you wish to use.

  • bReset (default: true): MISSING_PARAM_DESC

Returns

  • bool: value

Returns true if the passed arguments are correct and the item has been selected, false otherwise.

Code Examples

shared
guiGridListSetSelectedItem ( spawnScreenGridList, 0, 0) -- resets selection to zero

See Also

GUI Functions