Browse docs

Installation

Set up Sky Treasure Hunt with Sky Base, Jobs Base, OneSync, oxmysql and the required inventory items.

Requirements

RequirementPurpose
sky_baseFramework, inventory, accounts, SQL and shared interactions
sky_jobs_baseShared initialization and character identity
OneSyncServer-side position checks and shared activity state
oxmysqlTransactional persistence through Sky Base
Configured inventory providerEquipment use, purchases and delivery of finds

Set Sky Base's SQL provider to oxmysql. Treasure Hunt checks this at startup because progression and discovery updates use transactions. ox_inventory is supported through the inventory bridge, but is not a required inventory resource.

Install

Place the resource

Extract your resource download and place the folder containing fxmanifest.lua in your server's resources directory. Keep its name sky_treasurehunt. Retain the included stream, source/html, configuration and credit files.

Register all inventory items

Use Inventory items to register the 12 equipment items and 60 finds. The resource includes English and German ox_inventory import templates and matching PNG images in config/inventory/.

Merge the definitions into the inventory you actually use. The resource's import.sql creates Treasure Hunt tables; it does not insert items into an ESX inventory database.

Configure the database

Connect oxmysql to your database and configure it in Sky Base. Treasure Hunt creates its tables and applies its included migrations during startup. The database user needs permission to create and alter those tables and read and write their data.

import.sql is the manual table-creation reference for the current release. It does not disable startup migrations. See Database and updates before updating an existing installation.

Start dependencies first

Keep your existing framework and inventory setup, then use this order for the relevant resources:

server.cfg
ensure oxmysql
# Start your framework and inventory before Sky Base.
ensure sky_base
ensure sky_jobs_base
ensure sky_treasurehunt

Enable OneSync in your server configuration. The resource manifest declares it as a requirement. The FiveM server-command reference explains resource start commands.

Choose the first settings

Check Config.Locale, Config.Shop.locations and ServerConfig.Shop.Currency. All four methods are enabled by default. Settings are edited in the shipped Lua files; there is no Treasure Hunt /jobconfig page.

Verify the installation

Join as a regular player and visit the dealer near the Vespucci docks. Confirm that the shop opens, the starter detector and shovel can be purchased and used, and a completed find enters the inventory. Reopen the album and reconnect to check that the discovery and progression remain.

Then try a magnet cast, a dive with a filled scuba set and one bin search. Use First steps for the workflow and Troubleshooting if anything fails.