Server !
addEvent("get",true)
addEventHandler("get", root,
function ( group )
local accName = getAccountName ( getPlayerAccount ( thePlayer ) )
if isObjectInACLGroup ("user."..accName, aclGetGroup ( group ) ) then
if get("group") then
triggerClientEvent("gui", localPlayer)
end
end)
Client !
addEvent("gui",true)
addEventHandler("gui", root,
function ()
guiSetVisible( GUIEditor.window[1], true)
showCursor(true)
end)
addCommandHandler('ok',function()
triggerServerEvent("get", localPlayer)
end
)
Meta.xml