Browse docs
Commands and controls
Player controls
Use equipment through your inventory. The HUD shows the relevant action and key for the active tool.
| Action | Default | Notes |
|---|---|---|
| Open the dealer | E | Only near the configured dealer; target interaction is also supported |
| Put away detector or shovel | X | Uses the Treasure Hunt stow binding |
| Toggle detector/shovel sound | F9 | Applies while using the relevant tool |
| Cast or finish a magnet action | E | Uses the configured gameplay control |
| Cancel magnet fishing | X | Uses the configured cancel control |
| Recover a diving find | E | Only close to a valid underwater find |
| Remove scuba gear | X | Subject to the gear's current activity state |
| Search a bin / cancel | E / X | Only near a supported bin; search can also use a target provider |
| Close the shop | Escape | Returns control to the game |
FiveM key bindings can differ from these defaults. For the registered shop, tool, diving and bin commands, check Settings → Key Bindings → FiveM. Magnet actions use the numeric controls configured in Config.Magnet; detector/shovel digging also uses the gameplay control displayed by the HUD.
Administrator commands
Run these in player chat with a leading /, or from the server console without /. The target must be an online player.
| Command | Effect |
|---|---|
/treasure_level <playerId> <level> | Sets the target's detector progression level |
/treasure_skills_reset <playerId> | Clears learned detector skills, leaving earned XP available for redistribution |
These commands do not set or reset General, Magnet fishing, Diving or Searching bins progression. They do not clear the find album, inventory or stored scuba air.
The level must be a whole number within the configured detector progression range. Lowering it is rejected if existing skills require a higher level or spend more points than the new level allows. Reset the detector skills first when you intend to make that change.
Access
The server console is allowed. In-game administrators need the ACE configured in ServerConfig.Admin.ace, defaulting to sky_treasurehunt.admin. For a server already using group.admin:
add_ace group.admin sky_treasurehunt.admin allow
This grants the permission to that group; it does not add a player to the group. Keep membership in your existing server permission setup. See the FiveM access-control reference for ACE and principal configuration.
requireDuty is false by default. If enabled, ServerConfig.IsAdminOnDuty must be connected to your admin system. The supplied function denies duty access until implemented. The resource has no /treasureconfig or Treasure Hunt /jobconfig command.