Hello I would like to create list a of players,and wanted to do when player is in acl admin and smod his name appears in a different color than the others in the list
function createPlayerList ( )
local playerList = guiCreateGridList ( 0.80, 0.10, 0.15, 0.60, true )
local column = guiGridListAddColumn( playerList, "Player", 0.85 )
if ( column )
for id, player in ipairs ( getElementsByType ( "player" ) ) do
local row = guiGridListAddRow ( playerList )
guiGridListSetItemText ( playerList, row, column, getPlayerName ( player ), false, false )
guiGridListSetItemColor ( playerList, row, column, 255,0,0 )
end
end
end
addEventHandler ( "onClientResourceStart", resourceRoot, createPlayerList )