🦥
Project Sloth
  • 🦥Project Sloth
  • ⭐Server Hosting | 1 of 1 Servers
  • Scripts
    • ❤️ps-hud
      • Installation Guide
      • Previews
    • 🪄ps-buffs
      • Available Buffs
      • Creduts
    • 👮ps-dispatch
      • Installation
      • Using Exports
        • Creating New Alerts
          • Using your or our Exports
    • 💻ps-mdt
      • Installation
      • Showcase
      • Credits
    • 👾ps-ui
      • Circle Minigame
      • Number Maze
      • VAR
      • Thermite
      • Scrambler
      • Display Text
      • Status UI
      • Menus
      • Input
      • Show Image
      • Show Notification
    • 🌱ps-drugprocessing
      • Previews
    • ⛽ps-fuel
      • Installation Guide
      • Features
      • Showcase
    • 🚞ps-objectspawner
      • Installation Guide
      • Features
      • Showcase
      • Credits
    • 🚓ps-liveries
      • Showcase
      • Credits
    • 🏠ps-housing
      • Installation
      • Features
      • Showcase
      • Adding Shells
      • Migration
      • Credits
    • ⚙️ps-discord
      • Installation
      • Convars
      • Exports
      • Credits
  • ❓FAQ
    • Frequently Asked Questions
      • Warnings
      • PS-HUD
      • PS-DISPATCH
      • PS-MDT
      • PS-UI
      • PS-DRUGPROCESSING
      • PS-OBJECTSPAWNER
      • PS-LIVERIES
Powered by GitBook
On this page
  • Start installing now
  • Step 1:
  • Step 2:
  • Step 3:
  • Step 4:
  • Step 5:
  1. Scripts
  2. ps-fuel

Installation Guide

Previousps-fuelNextFeatures

Last updated 2 years ago

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.

If you have the previous resource "lj-fuel" do the same thing and replace that with "ps-fuel" or just get this newer version to avoid any conflictions or confusion.

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.

⛽