LegacyFuel icon indicating copy to clipboard operation
LegacyFuel copied to clipboard

Is it possible to Sync the Fuel with all drivers in car?

Open SamDavid93 opened this issue 3 years ago • 12 comments

Is it possible if yes, how?

for every help i will pleased :)

Sorry for the bad English

SamDavid93 avatar Mar 09 '21 19:03 SamDavid93

Yeah, i did it in my version, you must re-create the fuel passing vars to server and letting the server side decide it

sFxMTA avatar Mar 10 '21 03:03 sFxMTA

You mean with a Servercallback or how u do that?

SamDavid93 avatar Mar 10 '21 10:03 SamDavid93

Yeah, pass everything to server and let it manage the fuel level since actually it's in client-side and has a random number so nobody would have the same, the client should get the fuel level from server-side

sFxMTA avatar Mar 10 '21 12:03 sFxMTA

Okay i'm too stupid for this every time i try my hole Speedometer Hud is broken...

SamDavid93 avatar Mar 10 '21 15:03 SamDavid93

I wouldn't recommend you to do it if you don't have a bit of knowledge honestly

sFxMTA avatar Mar 10 '21 16:03 sFxMTA

A base of knowledge is there but my f... Hud is not reacting to the settings xD the Fuel state is undefined if i use the callback...

SamDavid93 avatar Mar 10 '21 20:03 SamDavid93

@sFxMTA it would be cool if you could share your fix lol :)

Tinky124 avatar Apr 03 '21 14:04 Tinky124

rt

Moonlgiht111 avatar Apr 08 '21 23:04 Moonlgiht111

Now I found out a way to sync the fuel with all the invehicle mates.

But.only Problem I can Not finish is: if anyone is inside the car but the diver or other mate sits in car, somebody is tanking, the fuel will be refreshed after exit. So my thoughts would be if the player gets in the driver seat the fuel should be shared to all mates. But how..

SamDavid93 avatar Apr 19 '21 12:04 SamDavid93

There is only one 'driver' in a vehicle, so what I assume you mean is that you want the passengers too to be aware of the fuel level?

InZidiuZ avatar Jan 07 '22 21:01 InZidiuZ

Hello, This problem fixed ?

How i can Sync the fuel with the all players for each cars.

Because i have a script what the code is on client and i don't know pass the code for the server side.

milafrn avatar Feb 26 '22 18:02 milafrn

Would be nice to have some kind of information here.

svenbledt avatar Nov 26 '23 06:11 svenbledt