ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client functions
  3. guiGridListSetSelectedItem

Function

guiGridListSetSelectedItem

ClientInterface (GUI)Identical to MTA:SA

Selects a list row. -1 clears the selection. Fires onClientGUIChanged.

Syntax

bool guiGridListSetSelectedItem(gui-gridlist gridList, int rowIndex, int columnIndex [, bool bReset = true])

Arguments

gridListgui-gridlist
The list.
rowIndexint
Row (from 0).
columnIndexint
Column (from 1).
bResetbool, optional = true
For compatibility with existing scripts.

Returns

true on success.

Example

guiGridListSetSelectedItem(list, 0, 1)