lockdw Posted March 12, 2020 Share Posted March 12, 2020 (edited) Sup! I have this function in my server. But i want that only players who is in "gang" ACL could use it. How can i do this? Like, if you're not in the "gang" ACL, you can't even start the function. The pannel will not appears to you. function IniciarVendaArmas (source, Arma_Selecionada, getID, getPreco, getMunicao, WeaponID) local Jogador = getPlayerID(getID) local Preco = tonumber(getPreco) local Municao = tonumber(getMunicao) local MunicaoAtual = getElementData(source, "TS:MuniAtual") or 0 IniciarVendaArmas = StartWeaponSelling Jogador = player Preco = price Municao = ammo MunicaoAtual = current ammo Edited March 12, 2020 by lockdw Link to comment
Simple. Posted March 12, 2020 Share Posted March 12, 2020 2 hours ago, lockdw said: Sup! I have this function in my server. But i want that only players who is in "gang" ACL could use it. How can i do this? Like, if you're not in the "gang" ACL, you can't even start the function. The pannel will not appears to you. function IniciarVendaArmas (source, Arma_Selecionada, getID, getPreco, getMunicao, WeaponID) local Jogador = getPlayerID(getID) local Preco = tonumber(getPreco) local Municao = tonumber(getMunicao) local MunicaoAtual = getElementData(source, "TS:MuniAtual") or 0 IniciarVendaArmas = StartWeaponSelling Jogador = player Preco = price Municao = ammo MunicaoAtual = current ammo local account = getPlayerAccount ( player ) if account and not isGuestAccount ( player ) then if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(player)), aclGetGroup('Acl name here')) then -- your code here 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