Scripting/Client/GUI/list.SetItem

Changes / reads the text of a row (GetItem returns null for a row that does not exist).

Syntax

list.SetItem(index, text)
list.GetItem(index)

Arguments

Example

function onScriptLoad()
{
	// list is a list handle (see List boxes and dropdown boxes)
	list.SetItem( 0, "Hello world" );
}

This sample was generated from the signature – adapt the values to your gamemode.

Section: List boxes and dropdown boxes

Categories: Client functions | List boxes and dropdown boxes