Browse docs

Changelog

Release notes for sky_treasurehunt.
Current

Version 1.9.0

Highlights

  • Added a per-event 3D find model for metal detecting, magnet fishing, diving and trash searching.
  • Added a fallback to the event preset model if the configured prop is unavailable.

Notable Changes

  • Improved the Events editor so runs are listed by name and the custom model field can be left empty.

Changed Files

  • sky_treasurehunt/INSTALL.md
  • sky_treasurehunt/config/events.lua
  • sky_treasurehunt/config/inventory/*
  • sky_treasurehunt/config/locales/*
  • sky_treasurehunt/fxmanifest.lua
  • sky_treasurehunt/source/* — delete and reinsert
Update InstructionsWhat to copy, what to keep and what to check1.8.01.9.0

Simplified update

Update sky_treasurehunt safely

Read the complete update instructions in one continuous guide.

1. Back up and stop

Download and extract sky_treasurehunt 1.9.0. These steps start from 1.8.0. Use any skipped update guides first if your installation is older. Back up the resource, custom configuration and database, then stop the FiveM server.

2. Install the updated files

Open the installed sky_treasurehunt folder containing fxmanifest.lua. Delete its old source/ folder and copy in the complete one from 1.9.0. Replace fxmanifest.lua and config/locales/ with the supplied versions. If you customized translations, copy your wording into the corresponding updated keys and keep their placeholders. Replace the supplied INSTALL.md, refresh the shipped inventory examples in config/inventory/ and keep your live inventory definitions. Keep existing event runs and prizes in config/events.lua. The supplied example adds the optional model = "" directly below itemLabel.

3. Check your settings

Install Sky Base 1.56.0 first. For a custom prop, start its streaming resource before Treasure Hunt. In /treasureconfig → Events, expand an event run that has yet to start. Enter the installed object's archetype name without a file extension in 3D find model and save. Leave it empty to use the preset bone or crate. For a deliberate Lua settings import, add model = "your_object_name", below itemLabel in the matching ServerConfig.Events.runs entry inside config/events.lua, then restart Treasure Hunt. Open /treasureconfig → Backup & restore → Import Lua files and confirm the import. Review the imported settings and restart Treasure Hunt to apply them before starting the event. Started runs keep their saved rules.

4. Database, items and assets

Keep the event's existing item definition, item image, prizes and saved progress. A custom 3D model is provided by its own streaming resource. Keep your installed map, including Dockside Salvage if you use it.

5. Start and check

Start framework, database connector and inventory, then Base, the existing map and any custom prop resource before Treasure Hunt. Restart and reconnect. Open the event in /treasureconfig and confirm the displayed model. For a scheduled test event, check a find with an enabled search method and verify that its inventory item and image still match the event.

Version 1.8.0

Highlights

  • Corrected German skill descriptions so rubbish-search time reductions and find-chance bonuses explain their actual effects.

Other Changes

  • Clarified German diving and magnet-fishing skill descriptions, recovered-find messages and the scuba-tank appearance label.

Changed Files

  • sky_treasurehunt/fxmanifest.lua
  • sky_treasurehunt/source/* — delete and reinsert
  • sky_treasurehunt/config/locales/*
  • sky_treasurehunt/config/inventory/*
Update InstructionsWhat to copy, what to keep and what to check1.7.01.8.0

Simplified update

Update sky_treasurehunt safely

Read the complete update instructions in one continuous guide.

1. Back up and stop

Download Treasure Hunt 1.8.0 and Sky Base 1.55.0. These steps start from Treasure Hunt 1.7.0; follow any intervening guides first for an older installation. Back up the resource, custom configuration/translations, inventory mappings and database, including player progress, discoveries, saved settings and event-prize records. Stop the server.

2. Install the matching files

Open the installed sky_treasurehunt folder containing fxmanifest.lua. Delete the complete source/ folder and copy in the new source/. Replace fxmanifest.lua, all of config/locales/ including its configurator/ subfolder, and config/inventory/ from the same download. Copy only your customized wording into matching new locale entries, retaining every supplied key. Keep your actual inventory registrations and restore customer-specific mappings in the refreshed inventory templates.

3. Keep settings and configure

Keep all existing Lua settings, currencies, prices, loot and skill customizations, selected providers and saved /treasureconfig overrides. No configuration import or reset is needed. Config.Locale in config/config.lua keeps its existing value: en, de, or Sky.Config.locale if it follows Base. This release corrects German wording without changing skill effects. Treasure Hunt does not use Jobs Base or /jobconfig.

4. Database, items and assets

No SQL import, new item registration, new inventory image or streamed-asset migration is required. Preserve XP, unlocks, discoveries, collections and event-prize state. The existing sky_dockside_salvage map is unchanged and needs no new companion-map upload.

5. Start and check

Start your existing framework/database/inventory providers, then sky_base 1.55.0, the existing Dockside map if used, and sky_treasurehunt. Restart the server and reconnect. On a German-language installation, open the rubbish-search skill descriptions: time reductions should describe 80%/70% of normal time, and find-chance bonuses should describe percentage-point increases. Check that saved configuration and player progress remain. On an English-language installation the skill wording remains unchanged.

Version 1.7.0

Highlights

  • Clarified what find-chance bonuses do in the English and German skill descriptions and pointed players to the album for exact probabilities.

Changed Files

  • sky_treasurehunt/fxmanifest.lua
  • sky_treasurehunt/source/* — delete and reinsert
  • sky_treasurehunt/config/locales/*
  • sky_treasurehunt/config/inventory/*
Update InstructionsWhat to copy, what to keep and what to check1.6.01.7.0

Simplified update

Update sky_treasurehunt safely

Read the complete update instructions in one continuous guide.

1. Back up and stop

Download Sky Treasure Hunt 1.7.0. Start from 1.6.0 or complete the intervening update guides first. Back up the resource, custom configuration, translations and database, then stop the server.

2. Install the matching files

Open the installed sky_treasurehunt folder containing fxmanifest.lua. Replace the complete source/, config/locales/ and config/inventory/ directories and fxmanifest.lua. Reapply your custom wording and inventory mappings to the matching entries.

3. Keep settings and configure

Keep your existing main configuration and selected providers.

4. Database, items and assets

Keep player progress, collections and tables. This update requires no SQL import, new item definitions or separate map update.

5. Start and check

Start Sky Base and the configured providers before Treasure Hunt. Open a skill description in English or German and compare its find chance with the value in the album.

Version 1.6.0

Highlights

  • Fixed an issue where the merchant's displayed sale total could differ from the amount paid to the player.

Notable Changes

  • Improved merchant pricing so selling an item in separate batches pays the same total as selling the same quantity at once.

Other Changes

  • Included a setup guide with the downloaded resource.

Changed Files

  • sky_treasurehunt/INSTALL.md
  • sky_treasurehunt/config/inventory/*
  • sky_treasurehunt/config/locales/*
  • sky_treasurehunt/fxmanifest.lua
  • sky_treasurehunt/source/* — delete and reinsert
Update InstructionsWhat to copy, what to keep and what to check1.5.01.6.0

Simplified update

Update sky_treasurehunt safely

Read the complete update instructions in one continuous guide.

1. Back up and stop

Back up the installed sky_treasurehunt folder and the FiveM database, including progress, discoveries and saved shop settings. Stop for maintenance. Download Treasure Hunt 1.6.0 and update Sky Base to 1.52.0. Jobs Base is not a dependency.

2. Install the matching files

Delete the installed sky_treasurehunt/source directory and insert the complete new source directory. Replace fxmanifest.lua and INSTALL.md from the same download. Refresh the entire config/locales and config/inventory folders. Preserve your edited translation values in corresponding new entries and retain all supplied keys. The inventory folder contains provider templates; keep your actual inventory registrations and custom item choices.

3. Keep settings and configure the update

Keep existing configuration, currencies, sell prices, price multipliers and saved /treasureconfig overrides unchanged. No new setting must be added. Do not run a Lua Files Import or reset saved configuration for this ordinary update. /jobconfig does not manage Treasure Hunt.

4. Database, items and assets

No new SQL import, inventory item, image or streamed-asset migration is needed. Keep player XP, discoveries and existing item registrations. The existing sky_dockside_salvage map is unchanged; no new companion-map upload is required for this release.

5. Start and check the result

Start the existing configured framework/database/inventory providers, then sky_base, the existing Dockside map if used, then sky_treasurehunt. Reconnect after the coordinated restart. At the merchant, compare the displayed price and sale total with the actual payout. Selling a quantity at once and selling that same quantity in separate batches must agree while the price multiplier is the same. Your saved shop configuration and player progress should remain.

Previous

Version 1.5.0

Highlights

  • Added a choice of a 3D tank object, clothing component or no visible tank for scuba equipment.

Notable Changes

  • Added separate male and female clothing settings for the optional scuba tank appearance in the Treasure Hunt configurator.
  • Fixed an issue where slow database initialization could prevent the configurator and interface from finishing startup.

Other Changes

  • Updated English and German configurator text to explain tank appearance, clothing IDs and air consumption.

Changed Files

  • sky_treasurehunt/config/diving.lua
  • sky_treasurehunt/config/inventory/*
  • sky_treasurehunt/config/locales/*
  • sky_treasurehunt/fxmanifest.lua
  • sky_treasurehunt/source/* — delete and reinsert
Update InstructionsWhat to copy, what to keep and what to check1.4.01.5.0

Simplified update

Update sky_treasurehunt safely

Read the complete update instructions in one continuous guide.

1. Back up and stop the server

These steps update sky_treasurehunt 1.4.0 to 1.5.0. If you use an older version, complete its earlier update instructions first.

  1. Download 1.5.0 and extract it on your computer.
  2. Back up your installed sky_treasurehunt folder, custom configuration/translations, resource KVP data and game database. Keep discoveries, XP, skills, event claims and saved settings.
  3. Let current activities finish, then stop the server before replacing files. Keep the backup until the checks below pass.

2. Install the matching files

Use files from the same 1.5.0 download throughout. These paths are inside your installed sky_treasurehunt folder.

  1. Delete the old source/ folder and copy the complete new source/ folder into its place, including the interface files.
  2. Replace fxmanifest.lua with the matching new file.
  3. Replace the complete config/locales/ folder. Transfer only your custom wording into corresponding new entries from the backup; keep every new key and file.
  4. Refresh the complete config/inventory/ folder. Your existing inventory definitions remain valid.

Keep all other custom configuration. Retain config/diving.lua; add only the optional setting described below if you configure the resource through Lua files.

3. Keep settings and choose optional tank appearance

Required: keep your current saved settings. The existing tank object remains the default, so no configuration change is needed to retain current behavior. Do not reset settings or import all Lua defaults for this update.

Optional — using the in-game configurator: after the first updated server start, open /treasureconfig and select Diving → Scuba tank appearance. Keep 3D object (existing) for the current tank model, select Clothing component to use an installed clothing item, or select Disabled to hide the tank and its replacement clothing piece.

For Clothing component, fill in Clothing slot, Clothing number and Texture number separately for male and female characters using IDs from your own installed clothing pack. Slot 5 is bags/backpacks. The supplied clothing number 0 is a neutral placeholder; this update does not include new tank clothing. Save, let active activities finish, then restart sky_treasurehunt in your server manager to apply the selection. Clothing values stay saved when switching appearance modes.

Optional — using Lua files: if Config.UseIngameConfigurator = false, open sky_treasurehunt/config/diving.lua. Find the existing Config.Diving.outline = ... line and add the following block directly after it, before Config.Diving.tank = .... Keep your other values and the existing tank attachment block:

Config.Diving.tankAppearance = {
    mode = "object", -- "object", "clothing", or "disabled"
    clothing = {
        mp_m_freemode_01 = { component = 5, drawable = 0, texture = 0 },
        mp_f_freemode_01 = { component = 5, drawable = 0, texture = 0 },
    },
}

Leave mode = "object" for the existing appearance. Before choosing "clothing", enter the valid component, drawable and texture IDs from your installed clothing for both character models. Use "disabled" for no visible tank or replacement piece. Restart after editing. Older config files without this block still use the existing object appearance.

The selection changes only tank appearance: air capacity, consumption, scuba items and the rest of the diving outfit retain their behavior. Config.Diving.tank controls attachment only in object mode. Existing attachment and outfit overrides are preserved. Treasure Hunt uses /treasureconfig; /jobconfig does not manage these settings.

4. Database, items and assets

No new database schema, manual SQL import, inventory item, image or streamed asset is required for 1.4.0 → 1.5.0. Keep all player progress, settings and existing inventory registrations; do not delete or reset database records.

Keep your installed sky_dockside_salvage map if you use the default trader. Its files and version are unchanged, so this release does not require another map upload or replacement.

5. Start and check the result

Start the framework, database connector and configured inventory/other providers before sky_base 1.51.0. Start the existing Dockside map if used, then sky_treasurehunt 1.5.0. Jobs Base is not required for Treasure Hunt. Confirm the resource version and reconnect players.

  1. Open the normal interface and /treasureconfig if enabled. Confirm startup completes and your saved settings, discoveries, XP and skills remain.
  2. Equip and stow a scuba set at a valid diving location. Check the selected tank appearance and restoration of the previous clothes.
  3. If you enabled clothing mode, test both male and female characters with your installed clothing IDs. Check that air display and consumption still work normally.
  4. Reconnect and repeat opening the interface. If startup fails, check the first server/client error before changing settings or retrying a save.

Version 1.4.0

Highlights

  • Improved default diving discovery with denser find placement and faster replenishment.
  • Added a configurable base range for diving find outlines and improved their default contrast.

Notable Changes

  • Improved orientation skills so learned levels extend the outline range without reducing a larger configured base range.
  • Fixed an issue where the interface requested readiness before initial configuration synchronization had finished.

Other Changes

  • Improved diving persistence so changing the find-grid size preserves the existing grid and player progress.

Changed Files

  • sky_treasurehunt/config/diving.lua
  • sky_treasurehunt/config/inventory/*
  • sky_treasurehunt/config/locales/*
  • sky_treasurehunt/config/skills.lua
  • sky_treasurehunt/fxmanifest.lua
  • sky_treasurehunt/source/* — delete and reinsert
Update InstructionsWhat to copy, what to keep and what to check1.3.01.4.0

Simplified update

Update sky_treasurehunt safely

Read the complete update instructions in one continuous guide.

1. Back up and stop the server

These steps update sky_treasurehunt from 1.2.0 or 1.3.0 to 1.4.0. Complete earlier update instructions first only if you are below 1.2.0.

  1. Download 1.4.0 and extract it on your computer.
  2. Back up your installed sky_treasurehunt folder, custom configuration/translations and game database. Keep the backup until your checks pass.
  3. Stop the server before replacing files.

2. Install the matching files

Use files from the same 1.4.0 download throughout. Paths below are inside your installed sky_treasurehunt folder.

  1. Delete the old source/ folder and copy the complete new source/ folder into its place, including its interface files.
  2. Replace fxmanifest.lua with the matching new file.
  3. Replace the complete config/locales/ folder. Transfer only your custom wording into matching new entries from your backup; retain every new key and file.

Refresh the complete config/inventory/ folder. Keep your customized config/diving.lua and config/skills.lua; make only the specific changes in the settings step.

3. Keep settings and configure optional features

With the in-game configurator: open /treasureconfig, select Diving and keep your customized values. The new Base find outline range (m) setting defaults to 20; set it and save. If you want the revised balance, choose cell size 24, refill 30 minutes and outline RGB 255, 235, 120 with shader 0. Under Experience & skills → Diving skills, the three diving orientation entries can use outline ranges 24, 28 and 32. Existing saved values remain until you change them. This is Treasure Hunt’s own configurator, not /jobconfig; do not import or reset all settings for an ordinary update.

With file-owned configuration: open sky_treasurehunt/config/diving.lua. Keep customized values; to adopt the revised defaults, change only these existing entries and add outlineRadius beside the outline settings:

Config.Diving.cellSize = 24.0 -- previously 32.0
Config.Diving.refillSeconds = 1800 -- previously 3600
Config.Diving.outlineRadius = 20.0 -- new
Config.Diving.outline = { red = 255, green = 235, blue = 120, shader = 0 }

The former outline RGB was 190, 190, 190. In config/skills.lua, find diving_orientation_1, _2 and _3 under Config.Diving.nodes. Change only each entry’s effects.outlineRadius from 16, 20, 24 to 24, 28, 32 if adopting the new defaults; retain IDs, costs and prerequisites.

Outline distance includes the height above the seabed. The larger of the base range and learned skill range applies. A new cell size uses a separate persisted grid; the old 32-metre grid and progress are retained. Already exhausted finds keep their existing expiry time.

After saving in /treasureconfig, restart sky_treasurehunt again to apply the saved changes, then reconnect and perform the checks below.

4. Database, items and assets

No new schema, inventory item, image or streamed asset is required. Refresh the complete config/inventory/ folder as part of the file update while retaining your existing inventory definitions. Do not reset discoveries, XP, skills, saved finds or settings.

Keep your existing separately installed sky_dockside_salvage map if you use the default trader; there is no new map upload for this release. The earlier 1.3.0 package changed only its version, so existing 1.2.0 and 1.3.0 installations can use these same update steps.

5. Start and check the result

Start the framework, database connector and configured providers before sky_base 1.50.0. Start the existing Dockside map if used, then sky_treasurehunt 1.4.0. Jobs Base is not required. Confirm the version and reconnect players.

Open /treasureconfig, check that your saved settings remain, then test a valid diving spot. Compare the base and learned outline distances, check the revised color if selected and confirm discoveries/XP remain. Reopen the interface after reconnecting and check the first startup error if it cannot finish loading.

Version 1.2.0

Highlights

  • Added optional bin-search restrictions for individual players or the whole server so minijobs and missions can reserve their rubbish interactions.
  • Added client and server exports for cancelling searches, checking search state and coordinating Treasure Hunt activities with other resources.

Notable Changes

  • Improved blocked searches so their E prompt, target interaction and current search are cancelled together, including inventory-full retries and requests still loading.
  • Improved integration locks so each resource releases only its own reasons, with automatic cleanup when the owning resource stops or the affected player disconnects.

Other Changes

  • Added an Exports reference with separate server and client examples, availability checks and restart guidance for integrating resources.

Changed Files

  • sky_treasurehunt/config/inventory/*
  • sky_treasurehunt/config/locales/*
  • sky_treasurehunt/fxmanifest.lua
  • sky_treasurehunt/source/* — delete and reinsert
Update InstructionsWhat to copy, what to keep and what to check1.1.01.2.0

Simplified update

Update sky_treasurehunt safely

Read the complete update instructions in one continuous guide.

  1. Prepare

This guide updates an installed 1.1.0 resource to 1.2.0. Older installations must first complete the 1.1.0 installation/update steps in the previous entry. Back up your FiveM database, sky_treasurehunt resource, custom configuration/translations and resource KVP data. Preserve progression, collections, event claims and saved settings. Let searches finish and stop the server before replacing files.

Keep Sky Base 1.47.0 or newer, your existing framework, oxmysql/database, configured inventory/providers and OneSync setup. Treasure Hunt has no Jobs Base dependency. Keep the installed sky_dockside_salvage 2.4.12 map for the default merchant; this update does not change or require replacement of that separate map.

  1. Replace files

Use the same 1.2.0 customer download for every replacement. Delete the complete old sky_treasurehunt/source/ folder and insert its new replacement, including the interface. Replace sky_treasurehunt/fxmanifest.lua. Refresh the complete sky_treasurehunt/config/locales/ and flat sky_treasurehunt/config/inventory/ folders, merging your custom wording and retaining your inventory provider's existing item definitions. These folders remain required package components; there are no new item IDs, images or translation keys. No stream asset changes or file removals/renames outside source/ are required.

  1. Keep settings and data

There are no new, changed or removed public config options, SQL schemas or provider requirements in this update. Keep your current public Lua configuration, inventory registrations, prices, progression and event settings. No manual SQL/import, item re-registration or asset installation is needed when updating a complete 1.1.0 installation. Do not reset tables, KVPs or saved configuration. /treasureconfig remains the settings panel; /jobconfig is not used. With Config.UseIngameConfigurator = true, retain saved customized groups; no Lua Files Import is needed for this release. File-owned permissions remain unchanged.

  1. Integrate optional minijobs

The new exports do not automatically integrate any minijob. If another activity must block Treasure Hunt bin searching, follow the Exports reference. Add dependency "sky_treasurehunt" to that integrating resource and use server SetTrashSearchBlocked(playerId, true, reason) after authorizing the job start. Use -1 instead of a player ID for a server-wide block. Release with false and the same reason on every job exit, cancellation or character switch. Each caller owns its reasons; releasing one does not remove other callers' or global restrictions.

Server locks enforce search/reward restrictions and synchronize the local interaction. Client locks affect only the local interaction. A cancelled search does not resume when unblocked, reroll a bin, reset its refill timer or undo completed rewards. Player locks clear on disconnect, caller-owned locks clear when that resource stops, and all locks clear when Treasure Hunt restarts. Reapply locks for ongoing jobs after a restart. Keep metal detecting, magnet fishing and diving on their existing workflows.

  1. Restart and verify

Perform a full server restart and reconnect clients. Start the framework, database connector and selected providers first, then sky_base, the existing sky_dockside_salvage, sky_treasurehunt and any integrating minijob resources. Check startup logs and normal merchant, album and bin-search behavior. For each enabled integration, test blocking during an active search and an inventory-full retry, confirm E/target/search cleanup, then release the same reason and start a fresh search. Check overlapping reasons, player/global blocks, disconnect/character-switch cleanup and restart reapplication. Verify existing progress and settings remain present.

Optional diagnostics are disabled by default. To enable them, put setr sky_profiler 1 in server.cfg before the Sky ensure lines and restart the server. Start a recording manually using the FiveM profiler; recording and upload never start automatically. Disable diagnostics with setr sky_profiler 0 and another server restart. This is not a configurator setting. Gameplay, HUD/target cleanup and the minijob's own interaction need a connected FiveM client and your actual integration/provider setup.

Version 1.1.0

Highlights

  • Added metal detecting and digging, magnet fishing, scuba recovery and rubbish searching with shared collections and separate activity progression.
  • Added a merchant for equipment, find sales and air refills, with 60 regular collection items and a portable find album.
  • Added activity skill trees and shared General skills for trading, equipment discounts and learning.
  • Added the authorized Treasure Configurator with saved settings, revision history and restart-based application.
  • Added optional scheduled events with themed finds, rankings, a separate event collection and placement prizes; the supplied Halloween example remains disabled.
  • Added the separately supplied Dockside Salvage map with an equipment store, recovery workshop and dive locker.

Notable Changes

  • Changed rarity skills to improve find chances while allowing all location-valid rarity grades to appear with Basic equipment.
  • Improved detector progression with 35 base XP per find and earlier first-discovery protection for eligible gold and mask finds.
  • Improved magnet fishing with five casts per spot and support for elevated banks that pass the normal water and reach checks.
  • Improved scuba equipment with attached tank props, saved air for each equipment tier and restoration of the player's clothing.
  • Added persistent character progression, collections and exhausted locations that survive reconnecting and resource restarts.
  • Added an event archive with recorded prize outcomes and administrator review of uncertain deliveries.

Other Changes

  • Updated native equipment, find models and matching inventory artwork with consistent Sky asset names.
  • Improved find-sale previews with different cosmetic item rotations on each shop visit.
  • Fixed an issue where merchant prices, balances and sale messages ignored the configured Sky Base currency format.
  • Added English and German gameplay, album, event and configuration text.

Changed Files

  • sky_treasurehunt/config/config.lua
  • sky_treasurehunt/config/diving.lua
  • sky_treasurehunt/config/diving_server.lua
  • sky_treasurehunt/config/events.lua
  • sky_treasurehunt/config/hotzones.lua
  • sky_treasurehunt/config/integration/admin.lua
  • sky_treasurehunt/config/integration/water.lua
  • sky_treasurehunt/config/inventory/*
  • sky_treasurehunt/config/locales/*
  • sky_treasurehunt/config/loot.lua
  • sky_treasurehunt/config/magnet.lua
  • sky_treasurehunt/config/magnet_server.lua
  • sky_treasurehunt/config/prices.lua
  • sky_treasurehunt/config/server.lua
  • sky_treasurehunt/config/skills.lua
  • sky_treasurehunt/config/trash.lua
  • sky_treasurehunt/config/trash_server.lua
  • sky_treasurehunt/fxmanifest.lua
  • sky_treasurehunt/import.sql
  • sky_treasurehunt/stream/*
  • sky_treasurehunt/source/* — delete and reinsert
Update InstructionsWhat to copy, what to keep and what to check1.0.01.1.0

Simplified update

Update sky_treasurehunt safely

Read the complete update instructions in one continuous guide.

  1. Prepare

This is the first documented Sky Treasure Hunt release, version 1.1.0. For an existing 1.0.0 installation, back up the database, resource files, configuration, inventory definitions/images and the resource's KVP data. Keep the exact resource name sky_treasurehunt. Let current searches finish and stop the server for replacement. New installations need the same inventory, database and configuration setup below.

Use Base 1.47.0 from this shared update. Treasure Hunt uses Sky Base without a Jobs Base dependency; the other jobs in the shared batch still need Jobs Base 1.50.0. Keep your existing configured inventory/framework providers, use the existing oxmysql transaction setup and OneSync, and obtain both supplied packages: the core sky_treasurehunt ZIP and the separate sky_dockside_salvage-2.4.12.zip map. The map is not inside the core ZIP.

  1. Replace files

Delete the complete old sky_treasurehunt/source/ folder and insert the new one, including its generated interface. Replace sky_treasurehunt/fxmanifest.lua and sky_treasurehunt/import.sql from the same 1.1.0 package. Refresh the complete sky_treasurehunt/stream/ tree, keeping only the supplied current native files; do not overlay obsolete Vantis-named equipment or development exports. The recursive stream tree includes detector/shovel tools, find props, magnet equipment/finds, diving tanks/finds and event models.

Refresh the whole sky_treasurehunt/config/locales/ tree, including configurator translations, and merge your custom wording. Refresh sky_treasurehunt/config/inventory/ as a flat installation folder containing the import examples and all 75 PNGs; there is no images/ subfolder. Merge the other public config files as described below instead of discarding custom settings.

Install the separate map as resources/sky_dockside_salvage with its manifest, README and all 49 stream files. Keep its supplied 2.4.12 version. The default merchant is at -758.66674, -1522.25369, 5.05 in the Higgins depot at Vespucci Marina. The map replaces the depot facade, two ground drawables and two collision tiles; a custom map replacing the same originals needs a compatible asset merge. Keep editable Blender sources, developer tools, previews and reports outside server resource folders.

  1. Merge config

Review all supplied public settings: config/config.lua (bootstrap, merchant, detectors/shovels, search, terrain, presentation and General progression), config/skills.lua (skill trees), config/server.lua (merchant account, categories and admin hooks), config/prices.lua (central sale prices), config/loot.lua (detector pools/discoveries), config/hotzones.lua (areas), config/magnet.lua / magnet_server.lua, config/diving.lua / diving_server.lua, config/trash.lua / trash_server.lua, config/events.lua, and config/integration/admin.lua / water.lua. Preserve intended custom locations, item IDs, prices, pools, water rectangles and integrations. The complete new tables are supplied in those editable files; merge their full blocks rather than creating guessed entries.

New bootstrap/configurator and portable-album defaults in config/config.lua are:

Config.Enabled = true
Config.UseIngameConfigurator = true
Config.CommandPermissions = { treasureconfig = { "god", "superadmin", "admin" } }
Config.Locale = "en"
Config.Album = { item = "treasure_album", price = 50 }

Config.Locale accepts the supplied en or de; use Sky.Config.locale explicitly to follow Base's selected language. Keep your existing command-permission choices. The panel is /treasureconfig, not /jobconfig. File merges can be done while the server is stopped; panel changes and rights checks are performed after the SQL setup and first startup of the updated resource.

With Config.UseIngameConfigurator = true, the first startup imports Lua settings, while later startups retain saved customized groups and let untouched groups adopt supplied defaults. A normal update does not require an import or reset. Open /treasureconfig, review the effective groups, save deliberate changes, then restart Treasure Hunt and reopen to confirm the applied revision. To intentionally replace managed settings with merged Lua values, first back up stored settings, restart the resource, choose Lua files import in the panel and restart again. Config.UseIngameConfigurator = false uses Lua on the next startup and retains saved SQL settings/history.

For existing development installations, Config.Progression.xpPerFind in config/config.lua changes from 25 to 35. Retain deliberate XP overrides, and merge the supplied complete Config.Progression.thresholds list when adopting the current curve. In config/loot.lua, ServerConfig.Discovery[4].hardLimit and [5].hardLimit change from the former 165/300 to 90 eligible successful digs for an unseen item of that grade. These are first-discovery rules, not a recurring payment guarantee. Existing startup migrations preserve levels and relative progress while translating the curve; raw XP can change to match new thresholds. Saved finds and history remain. Existing General skills are retained; when General progression is first introduced, formerly shared trading, equipment-discount and learning benefits migrate once into that separate tree. Do not reset progress to apply these changes.

For older development data only, each magnet, diving or rubbish-search skill set whose stored skills.__version is missing or differs from 2 is reset once when that method is first loaded, and the version is stored as 2. This skill reset retains its method XP, finds, history and discovery counters. Available points are recalculated from the current method level minus one, minus the cost of learned nodes; after the reset the learned-node cost is zero. Players must allocate those available points again in the affected activity tree before using its skill-locked equipment. This version migration does not reset General or detector skills, and method skill sets already at version 2 remain unchanged. The separate XP-curve migration described above can still remap raw XP while preserving level and relative progress.

In config/magnet.lua, Config.Magnet.castsPerSpot changes from 1 to 5; remove the obsolete Config.Magnet.maxHeight = 5.0. Keep the normal aim/water/reach checks and deliberate depletion settings. In config/diving.lua, merge the supplied tank attachment and freemode presets together: Config.Diving.tank uses bone 24818, offset (-0.30, -0.23, 0.0) and rotation (0.0, 90.0, 0.0); the supplied male/female component 5 drawable is 0, replacing the earlier development drawable 43. Each equipped tier supplies its attached tank model. Preserve your deliberately supported character-model clothing choices.

Existing lootTier/tier skill fields in config/skills.lua and method skill lists now represent rarity weight bonuses: 1 is baseline, 2/3/4/5 add 25/50/75/100 percent. Normal and event minTier values are rarity metadata. All location-valid grades are available with Basic gear; the separate skill, level and ownership requirements for upgraded tools/scuba sets remain. There is no rarity access reset or item conversion.

ServerConfig.Shop.Currency in config/server.lua defaults to "money" and supports "money", "cash" and "bank". Merchant amounts are formatted by the corresponding Sky Base currency settings; changing resource language does not change the currency. Preserve your intended account and prices. Event prize label values are administrator-authored text and must be adjusted separately when you want another displayed currency.

The new optional config/events.lua block is supplied complete below. It is disabled. Merge it as a new ServerConfig.Events.runs entry list, retaining any deliberately saved events:

ServerConfig.Events = {
    runs = {
        {
            enabled = false,
            id = "halloween_2026",
            name = "Halloween",
            description = "Find Halloween bones and compete for prizes.",
            preset = "halloween",
            startsAt = "2026-10-24T00:00:00+02:00",
            endsAt = "2026-11-01T00:00:00+01:00",
            item = "treasure_halloween_bone",
            itemLabel = "Halloween Bone",
            banner = "album/treasure_halloween_bone.png",
            image = "album/treasure_halloween_bone.png",
            accent = "#dc9854",
            methods = {
                detector = { enabled = true, weight = 10, chance = 0.15, minTier = 1, min = 1, max = 1 },
                magnet = { enabled = true, weight = 10, chance = 0.15, minTier = 1, min = 1, max = 1 },
                diving = { enabled = true, weight = 10, chance = 0.15, minTier = 1, min = 1, max = 1 },
                trash = { enabled = true, weight = 10, chance = 0.15, minTier = 1, min = 1, max = 1 },
            },
            prizes = {
                { place = 1, rewards = { { sort = "cash", name = "money", amount = 5000, label = "$5,000" } } },
                { place = 2, rewards = { { sort = "cash", name = "money", amount = 2500, label = "$2,500" } } },
                { place = 3, rewards = { { sort = "cash", name = "money", amount = 1000, label = "$1,000" } } },
            },
        },
    },
}

Before enabling an event, install its item, give each edition a new unique ID, and use explicit numeric UTC offsets in YYYY-MM-DDTHH:MM:SS+hh:mm format (+00:00 for UTC). Enabled schedules must not overlap. The supplied October/November offsets account for the daylight-saving change; events do not recur annually. Started runs retain their recorded rules and prizes; editing/removing a Lua entry does not erase the archive or pending prizes.

Each supplied method uses chance = 0.15 per eligible item selection. It is a replacement find, not an extra drop. Guaranteed normal first finds take precedence; trash first needs its default 20 percent success roll, producing a base 3 percent event chance per search. Saved older rules without chance retain relative weight behavior. Keep the event disabled if you do not want it.

Event archive administration is separate from panel permissions: config/integration/admin.lua uses the existing sky_treasurehunt.admin ACE and your configured admin/duty integration. Its default duty requirement is false; integrate ServerConfig.IsAdminOnDuty in config/server.lua before deliberately requiring duty. Additional ServerConfig.WaterQuads belong in the existing water adapter only when your custom map needs them.

Optional diagnostics are disabled by default. Put setr sky_profiler 1 in server.cfg before the Sky ensure lines and perform a full server restart. Run profiler record 1000, wait for profiler status to show completion, then run profiler saveJSON sky-treasurehunt-1.1.0.json. Recording/uploading does not start automatically and this is not a configurator setting. Disable with setr sky_profiler 0 and another full restart.

  1. SQL & items

Startup prepares the additive schemas for 10 gameplay tables, two configurator tables and seven event tables. sky_treasurehunt/import.sql contains all 19 matching CREATE TABLE IF NOT EXISTS statements, without prescribing charset/collation. Do not delete, truncate or reset existing player/config/event data. This resource has no customer Config.AutoExecuteQuery toggle to copy from a job script.

For manual schema preparation, keep the resource stopped, open your database administration tool, select the active FiveM database and execute the complete supplied sky_treasurehunt/import.sql. Its statements create missing tables and retain existing rows. If an existing sky_treasurehunt_trash_bins table lacks the expiry index, check and add it once:

SHOW INDEX FROM `sky_treasurehunt_trash_bins` WHERE Key_name = 'expires';
-- Only when that query returned no row:
ALTER TABLE `sky_treasurehunt_trash_bins` ADD INDEX `expires` (`expires`);

Automatic startup also checks that index. Preserve the existing KVP namespace so legacy depleted locations can be imported once into SQL; keep the same resource name. Progress/curve/skill migration is handled by startup, not by clearing database rows or replaying old rewards.

For OX, back up ox_inventory/data/items.lua and choose exactly one complete import: sky_treasurehunt/config/inventory/items_ox_en.lua for English or items_ox.lua for German. Merge the entries inside its return { ... } into your existing items table, preserving unrelated/custom items and avoiding duplicate IDs. Each complete import contains 60 regular finds, 12 reusable equipment items and treasure_album (73 IDs). The equipment IDs are metaldetector, metaldetector_standard, metaldetector_premium, shovel, shovel_standard, shovel_premium, fishing_magnet, fishing_magnet_standard, fishing_magnet_premium, scuba_gear, scuba_gear_standard and scuba_gear_premium. Keep tools/album at consume = 0, stack = false, close = true; Sky owns their use registration. Finds stay stackable and have no Use action. Do not add a second client export/event callback.

Copy the flat PNG files from sky_treasurehunt/config/inventory/ to ox_inventory/web/images/, with the supplied item IDs and client.image names matching. album_ox.lua and album_ox_de.lua are album-only alternatives for an otherwise complete inventory; the album is already in the complete imports and must be registered once. Its example weight is 250 grams and price defaults to 50. Preserve deliberate custom inventory weights; album loot-selection weights are a different setting.

Before enabling an event, merge its chosen item definitions. events_ox.lua provides treasure_halloween_bone and treasure_event_crate; install their matching flat PNGs. Importing them does not enable the Halloween example. For other inventory providers, register the same actual selected IDs in the provider's supported format, keep equipment reusable and configure that provider in Base. There is no supplied album_esx.sql or automatic item-registration SQL. Restart the full server after inventory edits so inventory definitions and Sky's item cache reload together.

The map and complete native stream assets are file installations, not inventory rows. Preserve old event image paths still referenced by recorded runs. Custom event artwork requires a supported local UI image path and a frontend rebuild; changing an image name alone does not install the file.

  1. Restart & test

Perform a full server restart and reconnect clients. Start your framework, database/oxmysql and configured inventory/providers first, then Base 1.47.0, the supplied Dockside map and the core:

ensure sky_base
ensure sky_dockside_salvage
ensure sky_treasurehunt

Check startup for missing items/schema errors, then perform the intended /treasureconfig review/import only if needed and restart the resource before gameplay checks. Confirm the merchant/map, localized item names, account formatting, reusable tools and portable album. Try a detector dig, five valid magnet casts, a scuba find/refill with restored clothing, and a rubbish search. Confirm progress/collections after reconnecting, and that saved customized settings survive a restart.

For a deliberately enabled test event, check an issued event find, ranking, discovered event album and ended-run prizes. Only actually delivered finds score; purchases, transfers and administrator grants do not add points. Ties use the recorded completion time/order. A late delivered find can enter the event album without changing an already closed ranking. Existing visible diving finds keep their original selected item.

Rejected prize grants remain pending for a later visit. A provider exception or uncertain delivery goes to review and is not automatically repeated. In the authorized Event Archive, check the inventory/provider logs before confirming delivery or reopening a claim, and record a reason. A prize popup acknowledgement is separate from the payment claim. Keep the archive and unresolved claims.

These checks need your actual map, inventory/provider and connected FiveM client. Source, regression, build and package checks do not establish rendered models, client streaming stability, multiplayer or settlement on another server.

::