غريب .. طيب جرب كذا
addEventHandler( "onClientGUIClick", resourceRoot, function ( )
if ( source == removebu ) then
if ( guiGetText ( addedit ) ~= "" ) then
guiGridListRemoveRow ( gridlist, guiGetText ( addedit ) )
end
elseif ( source == onlinebu ) then
if ( guiGetText ( addedit ) ~= "" ) then
guiGridListSetItemColor ( gridlist, guiGetText ( addedit ), NameCo, 0, 255, 0 )
end
elseif ( source == offlinebu ) then
if ( guiGetText ( addedit ) ~= "" ) then
guiGridListSetItemColor ( gridlist, guiGetText ( addedit ), NameCo, 255, 0, 0 )
end
elseif ( source == addbu ) then
if ( guiGetText ( addedit ) ~= "" ) then
local membername = guiGridListAddRow ( gridlist )
local roWCount = guiGridListGetRowCount ( gridlist ) - ( 1 )
guiGridListSetItemText ( gridlist, membername, NameCo, ""..tonumber ( roWCount ).."- "..guiGetText ( addedit ), false, false )
end
end
end )