πŸ”₯All scripts on our website are 50% off!πŸ”₯
Logo

πŸ“¦ Installation

Download

Before starting, you must log in to the CFX portal to download the asset. You will be able to download it as many times as you want on the official CFX page. Just as you download it the first time, you will also download it multiple times in the future to get updates.

Step 1: Login to CFX Portal

First, log in to the official CFX portal by clicking here.

Step 2: Finding Your Assets

Once logged in, navigate to the Granted Assets section to access your purchased assets. You can download them by clicking the "Download" button.

Download Guide

Dependencies

If you want to use the BIT Interact you can download it from the following link. You can also use any interact or drawtext.

BIT-Interact

Optional Interaction

The script has no required dependencies, but if you want to use the interact shown in the presentation video you can download BIT-Interact.

The interact is the icon that appears when you approach the treasure with an "E".

If you do not want to use any interact and simply want to use a drawText, modify the drawTxt function. By default it is configured for BIT-Interact:

function drawTxt(key, text, font, centre, x, y, scale, r, g, b, a)
    TriggerEvent("bit-interact:Start", key, text)

    -- default drawtxt: 

    --[[SetTextFont(font)
    SetTextProportional(0)
    SetTextScale(scale, scale)
    SetTextColour(r, g, b, a)
    SetTextDropShadow(0, 0, 0, 0, 255)
    SetTextEdge(1, 0, 0, 0, 255)
    SetTextDropShadow()
    SetTextOutline()
    SetTextCentre(centre)
    SetTextEntry("STRING")
    AddTextComponentString(text)
    DrawText(x, y)]]
end

Change to this to use default drawtext:

function drawTxt(key, text, font, centre, x, y, scale, r, g, b, a)
    SetTextFont(font)
    SetTextProportional(0)
    SetTextScale(scale, scale)
    SetTextColour(r, g, b, a)
    SetTextDropShadow(0, 0, 0, 0, 255)
    SetTextEdge(1, 0, 0, 0, 255)
    SetTextDropShadow()
    SetTextOutline()
    SetTextCentre(centre)
    SetTextEntry("STRING")
    AddTextComponentString(text)
    DrawText(x, y)
end

Add Resources

Once you have downloaded the script and dependencies (if necessary), you must add them to your server's server.cfg file. This resource must always be started below your framework and inventory. Otherwise, functionality issues or critical errors may occur.

# Default & Standalone Resources
# ------------------------------

ensure spawnmanager
ensure oxmysql
ensure bob74_ipl

# ESX Legacy Core
# ---------------

ensure [core]
ensure [inventory]
ensure bit-interact
ensure bit-treasurehunting

SQL Query

This script does not need to run any SQL queries.

Restart

Once you have completed these steps, restart your server and the installation will be complete.

[!CAUTION]

  • The name of the script folder must not be changed, otherwise the resource will not work correctly
  • Do not edit the encrypted files in any way