~Sr.Victor Posted July 30, 2020 Posted July 30, 2020 Olá, tentei colocar um sistema de fabricar armas por acl porém não consegui. Podem me ajudar? function abrir1 (thePlayer) if (thePlayer) and (getElementType (thePlayer) == "player") then triggerClientEvent (thePlayer, "tec9gui", thePlayer) end end addEventHandler ("onMarkerHit", tec9, abrir1) function abrir1 () if (painel) then removeEventHandler("onClientRender", root, Tec9gui) painel = false else addEventHandler("onClientRender", root, Tec9gui) painel = true end end addEvent ("tec9gui", true) addEventHandler("tec9gui", root, abrir1)
Mature Posted July 30, 2020 Posted July 30, 2020 Só altere a ACL, coloquei como admin, mas deve funcionar function abrir1 (thePlayer) if (thePlayer) and (getElementType (thePlayer) == "player") then if (isGuestAccount(getPlayerAccount(thePlayer)) == false) and isObjectInACLGroup ("user."..getAccountName ( getPlayerAccount ( thePlayer ) ), aclGetGroup ( "Admin" ) ) then triggerClientEvent (thePlayer, "tec9gui", thePlayer) end end end addEventHandler ("onMarkerHit", tec9, abrir1)
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