ox_inventory icon indicating copy to clipboard operation
ox_inventory copied to clipboard

Gas Canister has unlimited fuel.

Open PoliceDriver27 opened this issue 1 year ago • 2 comments

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:

  1. Take Jerry Can (weapon_petrolcan)
  2. 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

PoliceDriver27 avatar Jan 13 '24 13:01 PoliceDriver27

image

Cannot pour when durability reaches 0 (it is however hitting 0 much too quickly).

thelindat avatar Jan 15 '24 23:01 thelindat

but how can i integrate that with refuel scripts?

PoliceDriver27 avatar Jan 19 '24 16:01 PoliceDriver27