Renaz Posted May 19, 2019 Share Posted May 19, 2019 function ConfiscarArmas (player,commandName) local alvo = exports["[LusoRP](Sistema)ID_System"]:getPlayerID(tonumber(playerid)) if not alvo then return outputChatBox("[Aviso] Faltou colocar o ID do jogador!", player) end if isObjectInACLGroup ("user."..getAccountName(getPlayerAccount (player)), aclGetGroup ("ComandosCorporacoes")) then takeAllWeapons (alvo) outputChatBox("[Aviso] Você confiscou todas as Armas do Cidadão ID ' "..playerid.." ' com succeso!",player,255,255,255) outputChatBox("[Aviso] O Policial ' "..player.." ' confiscou todas as suas armas!",alvo,255,255,255) else outputChatBox("[Aviso] Você não é um policial!",player,255,255,255) end end addCommandHandler("c" , ConfiscarArmas) Já verifiquei e não acho o erro , aliás o quando uso o comando fica dando o return outputChatBox , estou com o sistema de ID tudo certo . estou usando /c id e fica dando o faltou colocar o id do jogador Link to comment
Other Languages Moderators Lord Henry Posted May 19, 2019 Other Languages Moderators Share Posted May 19, 2019 Claro que está faltando. Vc não colocou o parâmetro de função para associar o ID do player nele. function ConfiscarArmas (player, commandName, playerid) 1 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