Animation and tracking, whether the player is near the pump, are based on LegacyFuel, while the other code is written from scratch.
Story: When I was playing on other servers, most of them used LegacyFuel. Hassle-free, deploy and forget. It’s good, right? But the fuel is not synced, even with OneSync, due to how LegacyFuel handles the fuel level. For example, your friend Bob picks you up in his brand new Blista. On Bob’s screen, his fuel level is about 50%, but on your screen, it says 15%. (Doesn’t 100% represent the problem.)
What this script does is pretty simple on the server side. So it means you can’t refill your car with vMenu or txAdmin. (Yeah, I am talking to you, admin/moderator abusing power. Don’t be lazy, seriously.)
Feature List:
• Fuel tank matters. If it pops and starts leaking, you are f*cked because it’s leaking. Get it fixed.
• Immersive out-of-fuel sequence. Originally, when the car runs out of fuel, it will start reversing. This script will shut off the engine instead of reversing like a donkey.
• Works with ox_inventory. (Q: But sir, what about other scripts? A: Replace how the script handles the Jerrycan then.)
• Extended pump for planes and boats.
• Store Fuel level in database
It’s not the best work I’ve done, but it did what I wanted.
Side Note : I made this when ox_inventory was still linden_inventory. So stop telling me why this and that. This script sits at the back of my stash for a long time.
