Git Product home page Git Product logo

cc-fuel's Introduction

Banner

CC-FUEL

CC-Fuel is a Modified version of LegacyFuel for QB-Core using QB-Target for Interactions.
Full credit goes to the author of LegacyFuel, I just reworked it to fit better with qb-target.

INSTALLATION GUIDE

  1. Remove LegacyFuel from your [standalone] folder
  2. Drop the cc-fuel folder into your [standalone] folder
  3. Add fuelsiphon.png to QB-Inventory>html>images
  4. Add The Following Line to QB-Core>Shared.lua
-- CC-Fuel
['fuelsiphon'] = {['name'] = 'fuelsiphon', ['label'] = 'Fuel Siphon', ['weight'] = 2500, ['type'] = 'item', ['image'] = 'fuelsiphon.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'A fuel siphon to extract fuel from vehicles'},
  1. Add Fuel Siphon to a shop of your choice or anywhere else you want it.

FEATURES

  • QB-Target Based Script
  • Can Refill At All Gas Stations
  • Refuel From Petrol Cans (Petrol Can Item Required On Person)
  • Siphon Fuel From Cars (Fuel Siphon Item Required On Person)
  • Added chance for car blowing Up if Engine left on while refueling

NOTE

Any scripts that use the LegacyFuel export should be changed to use the cc-fuel export instead.

  • exports['LegacyFuel'] --> exports['cc-fuel']

To get the HUD fuel indicator working again replace the GetFuel export in qb-hud

IMAGES

image Image1

CREDIT

Original Repo - https://github.com/qbcore-framework/LegacyFuel

DEPENDENCIES

cc-fuel's People

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  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

cc-fuel's Issues

Get FUEL Level

I switched from LegacyFuel to cc-fuel I used a bulk search / changed to replace all the LegacyFuel.
As soon as a load in the server somewhere it is searching for a fuel level already in a loop.

Not even picked a character yet and the F8 console gets spamming that
Capture1
.

Interaction Menu

Hi would it be possible for you to add the ability to disable the ALT menu so rather then holding alt to do everything you can just press E to fuel or use the jerrycan or Siphone to do those actions?

QB HUD error

image

I cant buy petrolCan if i buy i dont get it, i dont know where i must add the code line beacuse the file is not exist but i open folder Shared and add on items.lua

image
image

issue

there is no option to do siphon fuel

Fuel Level Don't Sync through Players

If someone Refuels and someone else gets in a vehicle they don't seem to see the same fuel level. Like if someone drive and the fuel is empty and then someone else comes to the driving seat they'll be able to drive and they'll see the default fuel level. The same goes for Refueling.

qb-hud Error

Hey, I installed the script, it works very well and I am very happy with it. There is one issue I came across I was wishing I could get help with. I switched all "LegacyFuel" to "cc-fuel" however, in the "README" file I didn't quite get this part:
image

What I mass searched "qb-hud" to find where you were talking about regarding the "GetFuel" export and it was in the client, so I changed it like this:
image

Now I'm getting an error like this:
image

If I could get some help that would be amazing!

Jerrycan fuel

Hi there,

I've noticed the fuel level of the jerry can will go down when used on a car as expected but after using the same can on another car the ammo count was going back up.

Testing to see if this is just a me thing, if you think it is can you give me a hand with this issue?

Thank you!

incompatability with lj-hud

Hi , i went through and folowed all the steps , then bulk search for the LegacyFuel exports throughout all my srver files , change everywhere i could see to the correct CC-Fuel export , but i have the following error from my hud and i believe it's to do with GetFuel

https://gyazo.com/511
scripterror
22aac0620ec9f00519b3b6f1a9201

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.