Giter Site home page Giter Site logo

ox_fuel's People

Contributors

alp1x avatar antond15 avatar badfantomasss avatar bdxndev avatar bitpredator avatar borisnliscool avatar demetriomontalto avatar dolutattoo avatar dunak-debug avatar dyros3 avatar edecadt avatar far18 avatar fbfezz avatar feelfreetofee avatar getpwnedbydolbajoba avatar h0ssein avatar icecubepiso avatar justthemartin avatar katotekii avatar lukewastakenn avatar matinhq avatar michur55 avatar mirrrrrow avatar n-fire avatar skryptific avatar thelindat avatar tomstilson avatar usermacieg avatar zan1456 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ox_fuel's Issues

fuel level at 65

everytime i take a vehicle out from the garage the fuel level will be 65
before saving the vehicle back in to the garage no matter your fuel is below or above 65 once you save the vehicle and take out the vehicle from the garage the 1st second is showing you the correct value but then after that it will turn back to 65

been checking the native on es extended / ox lib is either getvehiclefuellevel or setvehiclefuellevel
garage script using is luke garage script and there is no fuel native in the luke garage script

would hope to get this issue fix...
beside the above issue the script is working just fine...

ox_fuel

Hi, why my gas can when it is empty it is not filled it adds a gas can?
image

[Suggestion]

It would be cool to add ablity to stop fueling, and show how much we will have to pay with current fuel we refueled.

Fueling with gas can will lock other keys after fueling

For some reason if I fuel any car with the gas can or even refuel the gas can it locks up the key for aiming and entering a vehicle.
This doesn't happen while refueling with the stations

This happens with latest ox_lib and ox_inventory.

Less Fuel problem

Hi,
Just noticed a days ago a strage action from the car when i've like 0/1% of fuel into it. When i try to accellerate the car is going back and not stopped where she need to stay or like shutdown the car. I'll give you a video below.

How can i fix it?

Video: https://streamable.com/djkop8

QTarget

Will it be added to qtarget, and can you add some nice refueling animations etc.

Progress bar error

image
The way to trigger this error is by not having enough cash to pay for the gas

ox_fuel - "No progress bar is active" error

If you have enough money to start refuelling but not enough to get you to the next fuel tick, you get a "No progress bar is active" error.

oxfuel/config.lua

    -- Fuel tick time (every 250 msec)
    refillTick = 250,

    -- Fuel cost (Added once every tick)
    priceTick = 5,

If I have $5, I can start refueling...but it will give me this error. If I have more than $10, I'm fine.
image

Possible solution:

Add a check to see if the progressbar is active

Current

ox_fuel/client/fuel.lua: Line 106

if price + config.priceTick >= moneyAmount then

Modified

ox_fuel/client/fuel.lua: Line 106

if price + config.priceTick >= moneyAmount and lib.progressActive() then

Seems to work alright so far.

Spam the target system to get more jerry can

step 1 : target a fuel pump
step 2 : buy or refill the jerry can
step 3 : while in progress bar again target and select buy menu it goes on

vlc-record-2022-09-14-19h25m34s-vlc-record-2022-09-14-19h25m11s-FiveM.by.Cfx.re.-.Thamizhan.Roleplay-.mp4-.mp4

Boats

U cant fill the Boats ...

error while using ffuelcan

unable to refuel a vehicle from fuel can

MainThrd/ ^1SCRIPT ERROR: @ox_fuel/client.lua:389: attempt to index a boolean value (upvalue 'fuelingCan')^7
[ 1809516] [b2372_GTAProce] MainThrd/ ^3> ref^7 (^5@ox_fuel/client.lua^7:389)
[ 1809516] [b2372_GTAProce] MainThrd/ ^3> fn^7 (^5@qtarget/client.lua^7:461)
[ 1809531] [b2372_GTAProce] MainThrd/ ^1SCRIPT ERROR: error object is not a string^7

Money question

Hello!

I was wondering if there is a way to make so people pay trough bank instead of cash money,

Enhancement/Feature: Exports (setFuel, getFuel)

Please hear out the people and other people who think it's beneficial. I've seen that you closed the request that was posted #16 here to have an export for GetFuel because you rather people use state bags, not against that. but I believe that for people that are swapping from existing fuel systems i.e.; Legacy Fuel, etc. or any other, this would be more convenient. Suggestion is to add two exports to the fuel system which are exports.ox_fuel:getFuel(vehicle) and exports.ox_fuel:setFuel(vehicle, amount). Reason to that is because it seems much cleaner than something like this;

local vehicle = GetVehiclePedIsIn(PlayerPedId())
local Vehicle = Entity(vehicle).state
Vehicle:set('fuel', 100, true)
SetVehicleFuelLevel(vehicle, 100)

Versus:

local vehicle = GetVehiclePedIsIn(PlayerPedId())
exports.ox_fuel:setFuel(vehicle, 100)

It seems like the exports are more cleaner and less tedious to implement. Thank you for hearing the 'feature/enhancement' out. ๐Ÿ‘Œ ๐Ÿ™

TODO

  • Differentiate gas powered vehicles to electric ones
  • Support ESX*
  • Support QBCore*

*Support for frameworks is currently awaiting a change to ox_lib which would make checking for money and items possible to easily integrate the frameworks.

BUG

Theres a bug where you can fuel your can anywhere any time

image

Issue: Fueling

You're able to get infinite gas for free by doing the following;

  1. Re-fuel your car.
  2. When refueling, drop your money out of the inventory.
  3. After the fuel completes, pick your money up.
  4. Easy free gas!

Fuel doesnt sync between players

One way to replicate is to have a person fuel a vehicle with a jerry can, when the person who refueled the car gets into the car they will have the new fuel level however the other person will have a different fuel level

No Fuel Can Error

image

If you have no fuel can in your inventory and try to fuel a car it causes the above error.

Buyable Gas Station

You can buy a filling station and export fuel. You can unload jobs to export fuel. You can buy levels, the bigger the levels, the more fuel you can keep in stock.

Won't Refuel cars

Problem with the new update, petrol Can won't refuel cars
also if you use all the fuel it drops the prop and says gas can durability is depleted and can't even refuel it

ox Fuel not start

ox fuel does not want to start automatically, we have to do this manually

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.