citizenfx / fivem

The source code for the Cfx.re modification frameworks, such as FiveM, RedM and LibertyM, as well as FXServer.
https://cfx.re/
3.49k stars 2.06k forks source link

You can't interact with vehicles if you walk away and come back #2758

Open Bigdadysaaa opened 2 weeks ago

Bigdadysaaa commented 2 weeks ago

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

  1. You take out a car.
  2. You move a long distance away and then return to the car.
  3. 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.

ahcenezdh commented 2 weeks ago

Hello looks like a problem with your script, can you provide a small resource so we can test?

Bigdadysaaa commented 2 weeks ago

Hello looks like a problem with your script, can you provide a small resource so we can test?

I have tried removing all the scripts and the problem still persists.