FpX Posted January 21, 2023 Posted January 21, 2023 (edited) está dando este erro quando entro no veiculo: WARNING: [SystemAdm]BanimentoXiters\Script\cBan.lua:14: Bad argument @ 'getElementModel' [Expected element at argument 1, got boolean] addEventHandler("onClientRender", root, function() if isPedInVehicle(localPlayer) then local Carro = getPedOccupiedVehicle(localPlayer) local currentVeh = getElementModel(Carro) -- LINHA DO ERRO AQ if Config["IdsBloqs"]["VehBloq"][tonumber(currentVeh)] then triggerServerEvent("FP:BanXiter", getLocalPlayer(), localPlayer, currentVeh, "Veiculo") end end end) Edited January 23, 2023 by Lord Henry Link de imagem convertido para o texto do erro.
Moderators Lord Henry Posted January 23, 2023 Moderators Posted January 23, 2023 Substitua essa linha: if isPedInVehicle(localPlayer) then Por essa: if getPedOccupiedVehicle(localPlayer) then 1 Eu te ajudei ou achou meu comentário útil? Não esqueça de deixar um Thanks! Minhas contribuições para a comunidade: LordHenry - MTA Wiki Profile Inscreva-se no meu canal do YouTube: Lord Henry - Entertainment Discord Oficial do MTA: https://mtasa.com/discord Blacklist e Whitelist de Scripters: Planilha Por favor, não me envie mensagens privadas solicitando suporte. Crie um tópico no fórum em vez disso.
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