mahmod3 Posted March 3, 2017 Share Posted March 3, 2017 اريد ان اللوحة تفتح الى اللرتبة الحاليه ؟؟ محاولتي كلنت function Open ( ) triggerServerEvent("nn",localPlayer) if ( guiGetVisible( img ) == false ) then guiSetVisible ( img, true ) showCursor(true) else guiSetVisible ( img, false ) showCursor(false) end bindKey("/","down") end addEvent('nnn',true) addEventHandler('nnn',root,open) سيرفر addEvent('nn',true) addEventHandler('nn',root,function() local accName = getAccountName ( getPlayerAccount ( source ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Console" ) ) then triggerClientEvent("nnn",source) end end) Link to comment
N3xT Posted March 3, 2017 Share Posted March 3, 2017 Client bindKey("/","down", function () triggerServerEvent("check:ACL",localPlayer,localPlayer) end ) addEvent('show:Panel',true) addEventHandler('show:Panel',root, function () if ( guiGetVisible( img ) == false ) then guiSetVisible ( img, true ) showCursor(true) else guiSetVisible ( img, false ) showCursor(false) end end ) Server addEvent('check:ACL',true) addEventHandler('check:ACL',root, function ( player ) local accName = getAccountName ( getPlayerAccount ( player ) ) local aclName = "Console" -- أسم الرتبة if isObjectInACLGroup ("user."..accName, aclGetGroup ( aclName ) ) then triggerClientEvent(player,"show:Panel",player) end end ) Link to comment
mahmod3 Posted March 3, 2017 Author Share Posted March 3, 2017 23 hours ago, N3xT said: Client bindKey("/","down", function () triggerServerEvent("check:ACL",localPlayer,localPlayer) end ) addEvent('show:Panel',true) addEventHandler('show:Panel',root, function () if ( guiGetVisible( img ) == false ) then guiSetVisible ( img, true ) showCursor(true) else guiSetVisible ( img, false ) showCursor(false) end end ) Server addEvent('check:ACL',true) addEventHandler('check:ACL',root, function ( player ) local accName = getAccountName ( getPlayerAccount ( player ) ) local aclName = "Console" -- أسم الرتبة if isObjectInACLGroup ("user."..accName, aclGetGroup ( aclName ) ) then triggerClientEvent(player,"show:Panel",player) end end ) شكرا اشتغل Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now