Fast Scripts Advanced Fuel [QB/ESX/QBOX]

Fast Advanced Fuel

Preview

:red_car: General Features:

  • Vehicle Information:
    :oncoming_automobile: The vehicle’s name and license plate number are displayed (e.g., “Buncha” and “XX000XX”).
    :clipboard: Vehicle Status Details:
    :battery: Fuel Level: 50%
    :thermometer: Engine Temperature: 70°C
    :racing_car: Maximum Speed: 250 km/h

:fuelpump: Fuel Types and Pricing:

  • :oil_drum: 4 Different Fuel Types are available (e.g., Diesel).
  • :heavy_dollar_sign: Adjustable Price: Price per liter for each fuel type can be set (e.g., $10/Liter or $20/Liter).
  • :level_slider: Fuel Amount Selection: Amount can be chosen using a slider.

:credit_card: Payment Options:

  • :dollar: Total Payment Calculation: The total amount is calculated (e.g., $70).
  • :credit_card: Payment Methods:
    • :bank: Credit/Bank card
    • :moneybag: Cash payment

:convenience_store: Gas Station Business Management:

  • Change Gas Station Name:
    :label: Owners can change the gas station’s name, enabling ownership customization.
  • Current Balance and Fuel Amount:
    :moneybag: Current Balance: Displayed balance (e.g., $100,000).
    :oil_drum: Fuel Amount in Tank: Monitored (e.g., 50L).
    :shopping_cart: Fuel Purchases: Owners can buy new fuel, and the cost is automatically calculated.
  • Deposit and Withdraw Money:
    :dollar: Owners can deposit or withdraw money from the balance.
  • Revenue and Expenses Tracking:
    :bar_chart: Revenue: e.g., $70,000
    :chart_with_downwards_trend: Expenses: e.g., $7,000
    :briefcase: Helps monitor profit and loss.

:chart: Gas Station Sale:

  • :arrows_counterclockwise: Owners can sell or transfer ownership of their gas station to another player.

:shopping_cart: Purchase Menu:

  • :hammer_and_wrench: Available Purchases:
    Gas station owners have access to a 7-page purchase menu, including:
    • :truck: Equipment
    • :oncoming_automobile: Vehicles
    • :wrench: Upgrades
    • :control_knobs: Additional features
      :chart_with_upwards_trend: This helps expand the business.

:repeat: Gas Station Transfer Feature:

  • :bank: Ownership Transfer:
    Gas station owners can transfer the entire business, including the fuel depot, to another player.
    :gear: This adds dynamism to the in-game economy.
Code is accessible There are Escrow and Source Code versions.
Subscription-based No
Lines (approximately) 1600
Requirements QB - QBOX - ESX - ox_lib
Support Yes
------------------------------------- ----------------------------

Escrow

Source

2 Likes

+rep, thanks for your hard work

Is this using state bags or exports?

exports[‘fast-fuel’]:GetFuel(Vehicle)
exports[‘fast-fuel’]:SetFuel(Vehicle, 100)

You can use it as Exports

Is it possible to set a certain class of vehicle to not get charged for fuel? We are a standalone framework but have a simple economy setup and are currently using Legacy Fuel and I modified it to check and see if the vehicle is in the Emergency Vehicle class. If it’s not an emergency vehicle, it charges the player for the fuel. If it is an emergency vehicle, it does not charge the player and just displays a message stating “The Department of Public Safety has been billed for your fuel”. Since your script allows for station ownership, I’d like the station to still get paid but also not deduct it from the player themself.

Can be done for specific jobs as an update