Petrol Can System
Last updated
Was this helpful?
Last updated
Was this helpful?
This step is not completely mandatory, but we will teach you how to apply metadata to the weapon_petrolcan of assets like LegacyFuel or similar so that they break when you finish filling a certain amount of gasoline in a car.
Quasar Store has an exclusive fuel system called Fuel Stations, which you will find at an exclusive price in our official store. This asset integrates the entire system automatically and has completely impressive functions.
The integration is very simple, we will search on the client side for the following code:
This event will point us to the point where we should add our custom event, which will be just below it, make sure not to replace the previous event, simply use it as a guide to place the inventory event.
It depends on the version of LegacyFuel you will have to add an event so that it gives you the item since some versions do not bring that natively, use our resource and it will be more functional and faster for you.
Once we know the modification that was applied, you can simply make use of the file already modified by our support, which will simply download and use without problems. This file is LegacyFuel for esx, if you want to use it in qbcore, you will have to apply some changes to it for qbcore or modify the version of your framework yourself.