FpX Posted January 21, 2023 Share 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. Link to comment
Other Languages Moderators Lord Henry Posted January 23, 2023 Other Languages Moderators Share Posted January 23, 2023 Substitua essa linha: if isPedInVehicle(localPlayer) then Por essa: if getPedOccupiedVehicle(localPlayer) then 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