Giter VIP home page Giter VIP logo

Comments (6)

Heisenberg691 avatar Heisenberg691 commented on June 26, 2024

These doors are not networked, they are not synced. Thats expected behavior when the other player was too far away; the door at the time of opening probably wasn't rendered for him. You can sync their open/closed state using events to each client with a door system script. But I don't think you can sync the door's open ratio, especially when the door is opened by a gun fire.

from fivem.

BugCode1 avatar BugCode1 commented on June 26, 2024

Yes, I am fully aware of this, and that is precisely why I am opening this issue.

In my opinion, if the final position of the doors is synced once when players enter within 100 meters of the area, the problem will be resolved. This is because beyond a certain distance, the doors automatically return to their synced state. Therefore, it would be best if the doors are synced once when they are rendered for the player.

from fivem.

Heisenberg691 avatar Heisenberg691 commented on June 26, 2024

The problem can't be resolved like that, because these objects are not networked, every client has its own copy. There is no server side position/rotation to sync. Which client's data you are gonna trust to be synced, there is no "entity owner". I don't think thats fivem issue.

from fivem.

Mathu-lmn avatar Mathu-lmn commented on June 26, 2024

The doors are not "synced" as said. If you're in the scope of the door and it's loaded, then the physics of the gunfire WILL make the door open. Since your friend wasn't in the scope at the time, for his client, the door was loaded and nothing happened to it until he reached it so it's closed.

from fivem.

MehdiBenbahri avatar MehdiBenbahri commented on June 26, 2024

This is not a bug, it must be a suggestion.

As others have said, the doors are not synced by default.
I know that for most RP servers, they have to fix it with a script that also handles door locking (this prevents players from going through the doors of a police station, taking police uniforms and going to the Yellow jack to get BCSO free drinks).

Maybe timing that door to every gunshot will be a bit overkill...
Most of the time we don't need this precision, a script that synchronizes the gates with a thread will suffice in most cases.

Although it is true that having synchronized doors would be the most effective way.

from fivem.

BugCode1 avatar BugCode1 commented on June 26, 2024

Yes. But in any case, it is better to synchronize things like this by onesync.

from fivem.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.