Comments (6)
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.
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.
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.
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.
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.
Yes. But in any case, it is better to synchronize things like this by onesync.
from fivem.
Related Issues (20)
- Crashing when Loading mounted data files (fivem.exe+1310754) HOT 2
- Title screen issue with RedM
- Crashing due to extra-natives-five.dll!CPedEquippedWeapon_SetupAsWeapon HOT 4
- Last update bricked remote play - Parsec/Moonlight HOT 11
- FXDK Blue Game Screen and Game Wont Start HOT 6
- fwEvent<>::callback destructor can cause stack overflows HOT 1
- [MonoV2] Exports like "chat, registerMessageHook" throwing SerializationException
- CreateObjectNoOffset on server crashes client if object is changed HOT 4
- bug in after artists b8461 server HOT 5
- State Bags/Onesync issues/changes in the last 24 hours? HOT 1
- I'm having a crush and with some player after changing build 3095 to another build like 2802 the badge doesn't happen HOT 1
- FXDK Window Goes Blank Wen Right Clicking on Resource While Using Windows Scaling. HOT 2
- Setting a state on client is not replicated HOT 7
- [clrcore-v2] Exports crash when executed HOT 2
- problem with a hack that is crashing the entire server HOT 2
- [MonoV2] deferrals.presentCard in PlayerConnecting event leads to a crash
- Filter locale display name incorrect
- Node.Js exiting (FXServer) HOT 3
- GetVehicleModColor_1 HOT 3
- Connection to CNL timed out crash HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fivem.