Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

suggestion: Respect fPetrolTankVolume and don't fill to 100 #105

Open
MauroNr1 opened this issue Nov 22, 2024 · 0 comments
Open

suggestion: Respect fPetrolTankVolume and don't fill to 100 #105

MauroNr1 opened this issue Nov 22, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@MauroNr1
Copy link

Currently, when you fuel any vehicle, even bicycles, they will fuel up to 100 instead of respecting the fPetrolTankVolume field in the handling file. fPetrolTankVolume should be the actual volume the petrol tank can contain, for a bicycle, this is 0, jetski: 2, T20: 65, Bulldozer: 100. I presume because fueling was never implemented (at least not to my knowledge) in GTA V itself, that this system is so weird and doesn't actually respect fPetrolTankVolume.

You can check this yourself:

lib.onCache('vehicle', function(vehicle)
    print(GetVehicleFuelLevel(vehicle))
    print(GetVehicleHandlingInt(vehicle, 'CHandlingData', 'fPetrolTankVolume'))
end)

@Ehbw Ehbw added the enhancement New feature or request label Jan 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants