addEventHandler("onClientResourceStart", resourceRoot,
function()
xw = guiCreateWindow(244, 106, 356, 405, "# Testing Only", false)
guiWindowSetSizable(xw, false)
guiSetVisible(xw,false)
guiSetAlpha(xw, 1.00)
grid = guiCreateGridList(9, 33, 337, 357, false, xw)
guiGridListAddColumn(grid, "Players :", 0.9)
end
)
R,G,B = 255,255,255
function players ( )
guiGridListClear ( grid )
for _,v in ipairs ( getElementsByType ( "player" ) ) do
if ( getPlayerTeam (v) ) then
R,G,B = getTeamColor ( getPlayerTeam ( v ) )
else
R,G,B = 255,255,255
end
local Row = guiGridListAddRow ( grid )
guiGridListSetItemText ( grid, Row, 1, getPlayerName ( v ), false, false )
guiGridListSetItemColor(grid,Row,1,R,G,B)
end
end
bindKey('f7','down', function ( )
s = guiGetVisible ( xw )
guiSetVisible(xw,not s)
showCursor(not s)
players()
end)
ظآبط 100% ء