Scripting/Client/GUI/list.FindItem
Index of the first row with exactly this text, -1 when there is none.
Syntax
list.FindItem(text)Arguments
- string text
Returns
integer
Example
function onScriptLoad()
{
// list is a list handle (see List boxes and dropdown boxes)
local result = list.FindItem( "Hello world" );
MessagePlayer( "list.FindItem returned: " + result, player );
}This sample was generated from the signature – adapt the values to your gamemode.
Related pages
Section: List boxes and dropdown boxes
Categories: Client functions | List boxes and dropdown boxes