Installation Guide

Start installing now
We will now provide you with a step-by-step guide for the installation process. Shouldn't take too long and it shouldn't be too confusing either!
Step 1:
Go ahead and start by dragging and dropping ps-fuel into your designated resources folder.
If you are still lost, Slothy has created a few GIF's to help guide you through all the installation steps.

Step 2:
Open your entire resources folder with Visual Studio Code (or whichever program you use) and replace all exsiting exports titled "LegacyFuel" with "ps-fuel" instead.

Step 3:
First copy the snippet below and then navigate to your
qb-smallresources/client/ignore.lua
then paste this snippet over the existing lines shown in the GIF below.

Step 4:
Copy this line and then navigate to your qb-inventory/client/main.lua paste this in your Visual Studio Code search bar.
if weaponName == "weapon_fireextinguisher" then
ammo = 4000
end
after it takes you to spot we need, copy this snippet and paste it over the few lines shown in the GIF below.

Step 5:
TriggerServerEvent("weapons:server:UpdateWeaponAmmo", CurrentWeaponData, tonumber(ammo))
Copy this line and then navigate to your qb-weapons/client/main.lua
paste this in your Visual Studio Code search bar.
CreateThread(function()
while true do
local ped = PlayerPedId()
local idle = 1
if (IsPedArmed(ped, 7) == 1 and (IsControlJustReleased(0, 24) or IsDisabledControlJustReleased(0, 24))) or IsPedShooting(PlayerPedId()) then
local weapon = GetSelectedPedWeapon(ped)
local ammo = GetAmmoInPedWeapon(ped, weapon)
if weapon == GetHashKey("WEAPON_PETROLCAN") then
idle = 1000
end
TriggerServerEvent("weapons:server:UpdateWeaponAmmo", CurrentWeaponData, tonumber(ammo))
if MultiplierAmount > 0 then
TriggerServerEvent("weapons:server:UpdateWeaponQuality", CurrentWeaponData, MultiplierAmount)
MultiplierAmount = 0
end
end
Wait(idle)
end
end)
After it takes you to spot we need, copy this snippet and paste it over the few lines shown in the GIF below.

Last updated