LUA - CLIENT:
addEventHandler("onClientResourceStart", resourceRoot, function()
hWnd_Commands = guiCreateWindow( 0.2, 0.2, 0.6, 0.6, "Admin LVL.5 Commands || By Enjoy || Version 1.0", true )
hGrid_Admin = guiCreateGridList( 0.1, 0.1, 0.8, 0.6, true, hWnd_Commands )
guiSetVisible(hWnd_Commands, false)
end)
function visibleToAdmin5()
triggerServerEvent('aclAdmin5', root)
guiSetVisible(hWnd_Commands, true)
showCursor(true)
end
addCommandHandler('mycmds', visibleToAdmin5)
addEventHandler('onPlayerLogin', getRootElement(), visibleToAdmin5)
LUA - SERVER:
addEvent('aclAdmin5',true)
function aclAdmin5_( )
if isObjectInACLGroup ( "user." ..getAccountName ( getPlayerAccount ( client ) ), aclGetGroup ( "Admin5" ) ) then
end
end
addEventHandler('aclAdmin5', getRootElement(), aclAdmin5_)
Anyways, what you are trying to do it to make the check serverside? If so, it doesn't return any value, thus won't really make any effect on the clientside function.