joao2235 Posted September 17, 2019 Posted September 17, 2019 Estou tentando criar uma função que faça com que a porta do veículo em que o Player estava seja fechada assim que ele deixar o carro. Não sei se isso é possível, mas tentei da seguinte maneira, porém sem sucesso: local theVehicle = getPedOccupiedVehicle ( source ) function SairVeiculo (theVehicle, leftSeat, jackerPlayer) if leftSeat == 0 and not jackerPlayer then setVehicleDoorOpenRatio ( theVehicle, 2, 0, 2500) setVehicleDoorOpenRatio ( theVehicle, 4, 0, 2500) end end addEventHandler("onPlayerVehicleExit", root, SairVeiculo) Se houver alguma maneira e puderem me ajudar, agradeço!
czarsight Posted September 17, 2019 Posted September 17, 2019 local theVehicle = getPedOccupiedVehicle (source) Remova essa linha. Testei aqui e funcionou. 1
czarsight Posted September 17, 2019 Posted September 17, 2019 17 minutes ago, joao2235 said: Funcionou, valeu! Manda seu discord aí, quero falar ctg
joao2235 Posted September 17, 2019 Author Posted September 17, 2019 Mano, no momento to sem, mas vou te mandar meu Whats no pv!
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