لأ ,
جرب ذا ماجربته
addEventHandler("onClientGUIClick",root,function ( )
if ( source == remove1 ) then
if ( guiGridListGetSelectedItem(GUIEditor.gridlist[1]) ~= -1 ) then
local PlayerName = getPlayerFromName (guiGridListGetItemText(GUIEditor.gridlist[1],guiGridListGetSelectedItem(GUIEditor.gridlist[1]),1))
if ( PlayerName ) then
if ( getElementData ( PlayerName , "open" ) == true ) then
setElementData (PlayerName,'open',false)
else
setElementData (PlayerName,'open',true)
end end end end end )
bindKey("F10","down", function ( )
local Data = getElementData ( localPlayer , "open" )
if ( Data == true ) then
-- Code Here
end end)