[Free] ESX Fuel by Sna with fuel nozzles and electric charging

I use ox_target add qtarget and it works fine, just need @snaaaa fix jerrican for ox_inventory

exports['qtarget']:AddTargetModel(Pumps, {
    options = {{
        event = "esx-fuel:PickupPump",
        icon = "fas fa-gas-pump",
        label = _U("info.pickup_pump"),
        entity = entity
    }, {
        event = "esx-fuel:BuyJerrican",
        icon = "fas fa-cart-shopping",
        label = _U("info.buy_jerrican"),
        entity = entity
    }},
    job = {"all"},
    distance = Config.MaxDistance
})
1 Like

Jerrican must be now ok for ox_inventory

About the old proximity detection, i don’t have time to make this. Over that by looking at bt-target i even can find the AddTargetModel in the exports of the client. It must then be possible to use bt target. Another solution is to enable OneSync if you have no programming knowledge (i was even not aware there are some onesync disabled)

1 Like

Nice script
I try the jerrycan when at Home and give you the feedback

So with me he stops at 1.3 L and does not refuel the car but he puts it on

You can update this time it is working :slight_smile:

yes the canister works now but due to the durability that exists on ox, the canister is infinitely the only script I know that has managed this so far is OX_Fuel
petrolcan

Yes but it stops here my expertise, as ox doesn’t use the gta natives and have no documentation to integrate their script
I’ve no time to dig their script to try to understand when they don’t follow standard :slight_smile:

onesync break a lot of script that are not designed for it. i could make the conversion to old detection system myself, but sadly i dont have the time either, my skill on that topic aint good enough for a fast work

This may you help :stuck_out_tongue:

and

Thanks for the links, but i have them unfortunately
No mention of the jerrican, even more of the weapons
When you look at the ox_fuel resource you see how bad they update the jerrican, changing the durability and ammo at the same time with a lot of lines, no quick access and no use of the natives
Finally their jerrican doesn’t work at all, and it is not my script that will change that. If you want a correct jerrican with ox_inventory, ask them to correct it, i can’t make their work

when i take the pump and place it on my car dont get above 1$ and 1.0L dont advance

Have you errors in the console? What are the console messages also?

not errors at all i change every export and dont work for me and my comunnity :frowning:

You need to have at least debug control messages when refueling, please check that

do you know one which is compatible with esx 1.2?

This one :wink:

the fuel consumption isn’t working for me and do i really need ox_lib or can i just remove it,

any idea why it doesn’t remove any fuel?

Hello, amazing script! I have a question - how can i change a model to supercharger?

использую свежий ESX в легаси, и не могу заправить машину, в консоле на f8 пишет, нет денег, хотя деньги есть