ODutii Posted September 8, 2019 Share Posted September 8, 2019 (edited) Já tentei fazer, com o que, o player clica no botão, e ele é adicionado na acl, e funcionou, so o que não funcionou é quando que quando ele entrar nessa acl irá aparecer o nome da Acl na Hud dele, tipo esses servidor de Rp que aparece o trabalho na hud, tem como me ajudarem? Edited September 8, 2019 by ODutii Link to comment
beast99 Posted September 8, 2019 Share Posted September 8, 2019 Normalmente, os servidores de RP usam getElementData. Link to comment
CrowleySCR Posted September 8, 2019 Share Posted September 8, 2019 -- SERVER-SIDE function setCargo(player) if player then if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("Console")) then setElementData(player, "ACT:Cargo", "Dono Geral") elseif isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("Administrador")) then setElementData(player, "ACT:Cargo", "Administrador") elseif isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("Moderador3")) then setElementData(player, "ACT:Cargo", "Moderador 3") elseif isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("Moderador2")) then setElementData(player, "ACT:Cargo", "Moderador 2") elseif isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("Moderador1")) then setElementData(player, "ACT:Cargo", "Moderador 1") elseif isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("Policial")) then setElementData(player, "ACT:Cargo", "Policial") elseif isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("Vip2")) then setElementData(player, "ACT:Cargo", "Vip Avançado") elseif isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("Vip")) then setElementData(player, "ACT:Cargo", "Vip Médio") elseif isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("Everyone")) then setElementData(player, "ACT:Cargo", "Civil") end end end setTimer( function() for i, pl in pairs(getElementsByType("player")) do if pl ~= (false or nil) then setCargo(pl) end end end, 100, 0) -- CLIENT-SIDE function dx( ... ) local MyTag = getElementData(localPlayer, "ACT:Cargo") dxDrawText(MyTag, x*1107, y*97, x*1470, y*30, tocolor(255, 255, 255, 255), 1.00, font, "left", "center", false, false, false, true, false) end Você pode tentar isso ;c ( Não Testei ) *Peguei de um resource Link to comment
ODutii Posted September 8, 2019 Author Share Posted September 8, 2019 Não funcionou, tentei dar uma mexida, mas não deu, vou tentar arrumar de novo, se tiver uma ideia pode falar ! 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