---ClientSide
addEvent('GUI', true)
addEventHandler('GUI', root,
bindKey(Key,"down",
function ()
guiSetVisible(fereastra,not guiGetVisible(fereastra))
showCursor(guiGetVisible(fereastra))
if ( guiGetVisible(fereastra) == true ) then
guiLabelSetColor(GUIEditor.label[5],math.random(0, 255), math.random(0, 255), math.random(0, 255))
end
end
))
---ServerSide
addEventHandler('onResourceStart', resourceRoot,
function ( )
if isObjectInACLGroup('user.'..getAccountName(getPlayerAccount(source)),aclGetGroup('admin')) then
triggerClientEvent(source, 'GUI', source)
else
outputChatBox('Your Not Admin', source, 255, 0, 0)
end
end
)
i write it fast it should work .