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

Function

guiGridListClear

ClientInterface (GUI)Identical to MTA:SA

Removes all rows from a list (columns stay).

Syntax

bool guiGridListClear(gui-gridlist gridList)

Arguments

gridListgui-gridlist
The list.

Returns

true on success.

Example

local function refresh()
    guiGridListClear(list)
    for _, p in ipairs(getElementsByType("player")) do
        guiGridListAddRow(list, getPlayerName(p))
    end
end