ox_inventory
ox_inventory copied to clipboard
Gas Canister has unlimited fuel.
Hey, so I have this bug where Gas Canisters (Jerry Cans) have unlimited fuel. Not only when refueling but when joust pouring it. I think it is caused because ox might see weapons as items, but I'm not sure. Is there a way to fix it?
Framework Ox/ESX
Resource version version '2.38.1'
To Reproduce Steps to reproduce the behavior:
- Take Jerry Can (weapon_petrolcan)
- Pour it. (Shooting button)
Expected behavior Normal the ammunition number should go down from 100-99-98-97-......... and the canister should be empty when reaching 0.
Note: In the normal gta the character drops the canister when empty.
So that would need to be changed into an item when it reaches 0 or something.
Additional context I also had this problem using ox_fuel and LegacyFuel
Cannot pour when durability reaches 0 (it is however hitting 0 much too quickly).
but how can i integrate that with refuel scripts?