Wiki
Clone wikiEFLC-MP LUA / addDialogRow
Description
Adds a new row for a dialog list
Parameters
Int dialogId, String rowData, Int customId
String rowData: the values for each column of a row separated by '~'
Int customId: Some ID you want to be returned by the response event. Build 11.2
Return values
nil if the dialog id is invalid
Example
#!lua local players = getPlayers() local diagLoaded = createDialogList(999, "Player list", 2, "Ok", "Cancel") if(diagLoaded == true) then setDialogListHeaders(999, "ID~Name") for i, id in ipairs(players) do addDialogRow(999, "" .. id .. "~" .. getPlayerName(id)) end end
Updated