كنا نعطيه سهل
خلي الرجال يحاول
في خطا
التصليح
bindKey( "F1","down",keyopen)
function keyopen()
triggerServerEvent("ifpolice",localPlayer)
end
addEvent("done",true)
addEventHandler("done",root,
function ()
if guiGetVisible( GUIEditor.staticimage[1]) then
guiSetVisible( GUIEditor.staticimage[1],false)
showCursor(false)
else
guiSetVisible( GUIEditor.staticimage[1],true)
showCursor(true)
GetPlayersInList()
end
end
)
----------server
Ggroup = ("Admin")
addEvent("ifpolice",true)
addEventHandler("ifpolice",root,
function ()
if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup(Ggroup)) then
triggerClientEvent(source,"done",source)
end
end
)