Page cover image

Installation Guide

Dependencies

Dependency
Description

qb-core / qbx_core or es_extended

Framework

qb-target / qtarget / ox_target

sd_lib

Important Library

ox_lib

Important Library

Supported Maps

K4MB1's Mapping or NP Mapping

Supported Minigames

Each hack in the resource supports all of the following minigames. At least one of these minigames is required for the script to function:

Minigame
Supported Games

ps-ui

circle, maze, carhack, thermite, scrambler

memorygame

ran-minigames

memorycard, terminal

howdy-hackminigame

hacking

sn-hacking

memorygame, skillcheck, thermite, keypad, colorpicker

rm_minigames

typinggame, timelockpick, timedaction, quicktimeevent, combinationlock, buttonmashing, hotwirehack, hackerminigame, safecrack

Installation Steps

1. Add Items

  1. Open items.lua: Navigate to ox_inventory/data/items.lua.

  2. Add the Following Items: Insert the following code into the items.lua file:

    ["oilbarrel"] = {
        label = "Oil Barrel",
        weight = 20000,
        stack = false,
        close = true,
        description = "Full of oil, probably has some value",
        consume = 0,
        client = {
            image = "oilbarrel.png",
        }
    },
    
    ["revivekit"] = {
        label = "Revival Kit",
        weight = 3000,
        stack = false,
        close = false,
        description = "When your pal needs that pick me up",
        consume = 0,
        client = {
            image = "revivekit.png",
        },
        server = {
            export = 'sd-oilrig.useRevivekit',
        }
    },
    
    ["security_card_oil"] = {
        label = "Pink USB Dongle",
        weight = 500,
        stack = false,
        close = true,
        description = "This has got to be some important information...",
        consume = 0,
        client = {
            image = "security_card_oil.png",
        }
    },
    
    ["laptop_pink"] = {
        label = "Pink Laptop",
        weight = 5000,
        stack = false,
        close = true,
        description = "A security Laptop",
        consume = 0,
        client = {
            image = "laptop_pink.png",
        }
    },
    
    ["token"] = {
        label = "Mysterious Token",
        weight = 500,
        stack = false,
        close = true,
        description = "A Mysterious Token",
        consume = 0,
        client = {
            image = "token.png",
        }
    },

2. Copy Images

Copy the corresponding item images to the images folder of your inventory.

Additional Notes

  1. Add the following event (code) into your qb-weathersync/client/client.lua. If you plan on using Config.ChangeTime (eg. change the time to midnight and change the weather to stormy)

RegisterNetEvent('qb-weathersync:client:DisableSyncOilRig', function()
    disable = true
    CreateThread(function()
        while disable do
            SetRainLevel(1.0)
            SetWeatherTypePersist('RAIN')
            SetWeatherTypeNow('RAIN')
            SetWeatherTypeNowPersist('RAIN')
            NetworkOverrideClockTime(23, 0, 0) 
            Wait(5000)
        end
    end)
end)
  1. Restarting the resource whilst ingame without relogging WILL cause it to break. The oilrig spawn check is performed on the 'onPlayerLoaded' event, which only triggers upon initial player loading. To effectively edit and test out code, without having the need to relog everytime, you can change the Config.HasSpawnedInOilrig in the Config to false. Make sure to set it back to true once the script is ready for your Live Server.

Last updated