fivem
fivem copied to clipboard
You can't interact with vehicles if you walk away and come back
What happened?
For the past few days, we've encountered a bug on the server, even though we haven't made any recent changes.
We've received numerous reports from players indicating that they are unable to interact properly with their vehicles, specifically when trying to open or close the doors.
Upon investigation, I noticed that if a player moves away from the vehicle and then returns, the vehicle won't allow the doors to be opened if they were already open.
https://streamable.com/vejnqq
Expected result
to be able to open the car.
Reproduction steps
- You take out a car.
- You move a long distance away and then return to the car.
- You try to open the car, but it won't let you.
Importancy
Unknown
Area(s)
FiveM
Specific version(s)
2802
Additional information
I’ve tried doing it on a server with just myself and it works, but if there are more players on the server, the error occurs. It’s possible that when you move away, the entity gets assigned to another player.
Hello looks like a problem with your script, can you provide a small resource so we can test?