InZidiuZ / LegacyFuel

A simple, lightweight fuel script for FiveM
GNU General Public License v3.0
78 stars 216 forks source link

attempt to perform arithmetic on a nil value ( field '?') #101

Closed Beta-Bella closed 1 year ago

Beta-Bella commented 1 year ago

Hello dear Dev.

First of all i love you script. And we never had any issues.

Since we switched over to Ox-inventory. Our first issue is , when we have the jerrycan as an item - We can use it to refill the car but after 2 seconds, it stops and you cannot fuel the car. There is no error shown in the client nor serversided console sadly.

And the other is - as shown on the picture on this thread. I havent managed to reproduce it yet since people are not willing to give enough information what they do - and what not.

We run on the latest ESX legacy with Ox-inventory and its modules.

lovely greetings.

image

Feurfelix2409 commented 11 months ago

Dear BellaStreet,

I use this script too and have the same Problem with the Jerrycan. Can you please tell me how you fixed it?

Thanks in advance

Beta-Bella commented 11 months ago

in the client.lua i believe , Line 159 TriggerEvent('fuel:startFuelUpTick', true, ped, vehicle)

It was on false with us ( why we dont know, we switched it to true) but it gives your Jerrycan infinite ammo. So they basically can missuse it.

and we had to switch to weapon_petrolcan ( since we use oxinventory)

We switched to a different system while we tried to fix it somehow.

Dear BellaStreet,

I use this script too and have the same Problem with the Jerrycan. Can you please tell me how you fixed it?

Thanks in advance