SaedAmer Posted July 6, 2016 Share Posted July 6, 2016 السلام عليكم دلوقتي الكود ده لما اضغط علي الاعب يفتح الوحة عاوز ازود عليه لما اضغط علي العربية تتفتح الوحة ويجبلي اخر واحد كان يسوقها function elementClicked(_,_,plr,veh) local mhaster12 = getPlayerName (source) local gfg = getVehicleController ( source ) local mnm = getPlayerName (gfg) if getElementType (source) == "player" or getElementType (source) == "vehicle" then triggerClientEvent(plr,"openGui",plr) triggerClientEvent(plr,"openGui123",plr,mhaster12) removeElementData (plr,"bugfix") removeEventHandler ("onElementClicked",plr,elementClicked) end end addEvent("check2",true) addEventHandler("check2",root, function() local acc = getPlayerAccount(source) if isObjectInACLGroup("user."..getAccountName(acc),aclGetGroup("Police")) then addEventHandler("onElementClicked",source,elementClicked) setElementData (source,"bugfix",true) else outputChatBox("You are not police or admin",source,255,255,255) 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