overextended / ox_fuel

Simplistic fuel resource meant for use with ox_inventory
https://overextended.dev/ox_fuel
GNU General Public License v3.0
60 stars 77 forks source link

Fuel doesnt sync between players #15

Closed SnooperSwiper closed 2 years ago

SnooperSwiper commented 2 years ago

One way to replicate is to have a person fuel a vehicle with a jerry can, when the person who refueled the car gets into the car they will have the new fuel level however the other person will have a different fuel level

PoorLatency commented 2 years ago

Can confirm, one person sees another fuel than the other. So, for an example let's say there's two of you in a car, driver sees 20% fuel, but the passenger sees 100% fuel. Therefore, they swap seats and car will have 100% fuel.

thelindat commented 2 years ago

I guess still waiting for the PR to allow the client to instantiate statebags.

Easiest fix is to send a server event if the entity has no fuel value.

thelindat commented 2 years ago

Statebag is now created on the server.