- Documentation
- Client functions
- guiGridListSetItemColor
Function
guiGridListSetItemColor
Sets a cell's text colour.
Syntax
bool guiGridListSetItemColor(gui-gridlist gridList, int rowIndex, int columnIndex, int red, int green, int blue [, int alpha = 255])Arguments
gridListgui-gridlist- The list.
rowIndexint- Row (from 0).
columnIndexint- Column (from 1).
redint- Red.
greenint- Green.
blueint- Blue.
alphaint, optional = 255- Alpha.
Returns
true on success.
Example
for _, p in ipairs(getElementsByType("player")) do
local row = guiGridListAddRow(list, getPlayerName(p))
if p == localPlayer then
guiGridListSetItemColor(list, row, 1, 255, 200, 0)
end
end