[{"data":1,"prerenderedAt":509},["ShallowReactive",2],{"/docs/scripts/treasurehunt/setup/configuration":3,"/docs/scripts/treasurehunt/setup/configuration-surround":497,"/docs/scripts/treasurehunt/setup/configuration-implemented-suggestions":508},{"id":4,"title":5,"body":6,"description":487,"extension":488,"head":489,"implementedSuggestions":489,"meta":490,"navigation":491,"path":492,"schemaOrg":489,"seo":493,"sitemap":494,"stem":495,"__hash__":496},"docs/1.docs/scripts/6.treasurehunt/2.setup/2.configuration.md","Configuration",{"type":7,"value":8,"toc":479},"minimark",[9,26,31,37,193,197,211,251,255,262,338,364,371,375,391,412,415,419,430,443,447,460,475],[10,11,12,13,17,18,21,22,25],"p",{},"Treasure Hunt is configured in the resource's ",[14,15,16],"code",{},"config/"," directory. Edit the existing entries, keep a backup and restart ",[14,19,20],{},"sky_treasurehunt"," after saving. It does not register an in-game configurator or a ",[14,23,24],{},"/jobconfig"," section.",[27,28,30],"h2",{"id":29},"configuration-files","Configuration files",[10,32,33,34,36],{},"Paths below are relative to the installed ",[14,35,20],{}," folder.",[38,39,40,53],"table",{},[41,42,43],"thead",{},[44,45,46,50],"tr",{},[47,48,49],"th",{},"File",[47,51,52],{},"Settings",[54,55,56,67,77,87,97,111,124,137,147,160,170,183],"tbody",{},[44,57,58,64],{},[59,60,61],"td",{},[14,62,63],{},"config/config.lua",[59,65,66],{},"Master switch, locale, dealer, detector and shovel tiers, detector progression, general skills, terrain, controls and audio",[44,68,69,74],{},[59,70,71],{},[14,72,73],{},"config/server.lua",[59,75,76],{},"Payment account, detector sale prices, dealer limits and admin permissions",[44,78,79,84],{},[59,80,81],{},[14,82,83],{},"config/loot.lua",[59,85,86],{},"Detector reward pools, weights and find-tier requirements",[44,88,89,94],{},[59,90,91],{},[14,92,93],{},"config/hotzones.lua",[59,95,96],{},"Optional detector polygons and their loot-profile selection",[44,98,99,108],{},[59,100,101,104,105],{},[14,102,103],{},"config/magnet.lua"," / ",[14,106,107],{},"config/magnet_server.lua",[59,109,110],{},"Magnet equipment, casting, skills, inland/sea pools and sale prices",[44,112,113,121],{},[59,114,115,104,118],{},[14,116,117],{},"config/diving.lua",[14,119,120],{},"config/diving_server.lua",[59,122,123],{},"Scuba sets, clothing, air, recovery, skills, rewards and sale prices",[44,125,126,134],{},[59,127,128,104,131],{},[14,129,130],{},"config/trash.lua",[14,132,133],{},"config/trash_server.lua",[59,135,136],{},"Supported bin models, interaction, search time, skills, rewards and sale prices",[44,138,139,144],{},[59,140,141],{},[14,142,143],{},"config/water.lua",[59,145,146],{},"Server water boundaries for environmental validation",[44,148,149,157],{},[59,150,151,104,154],{},[14,152,153],{},"config/findprops.lua",[14,155,156],{},"config/diving_props.lua",[59,158,159],{},"Find-model mappings and presentation",[44,161,162,167],{},[59,163,164],{},[14,165,166],{},"config/album.lua",[59,168,169],{},"Item identities counted in the shared album",[44,171,172,180],{},[59,173,174,104,177],{},[14,175,176],{},"config/locales/en.lua",[14,178,179],{},"config/locales/de.lua",[59,181,182],{},"Player-facing text and built-in item names",[44,184,185,190],{},[59,186,187],{},[14,188,189],{},"config/integration/admin.lua",[59,191,192],{},"The permission and optional admin-duty check",[27,194,196],{"id":195},"language-and-enabled-activities","Language and enabled activities",[10,198,199,202,203,206,207,210],{},[14,200,201],{},"Config.Locale = \"en\""," is the default. Use ",[14,204,205],{},"\"de\""," for German, or ",[14,208,209],{},"Sky.Config.locale"," to follow Sky Base. Choose the matching inventory template separately: changing the resource locale does not rename entries inside another inventory's catalogue.",[10,212,213,216,217,220,221,220,224,220,227,220,230,233,234,237,238,220,241,220,244,233,247,250],{},[14,214,215],{},"Config.Enabled"," controls the resource's gameplay. ",[14,218,219],{},"Config.Shop.enabled",", ",[14,222,223],{},"Config.Magnet.enabled",[14,225,226],{},"Config.Diving.enabled",[14,228,229],{},"Config.Trash.enabled",[14,231,232],{},"Config.Hotzones.enabled"," and ",[14,235,236],{},"Config.General.enabled"," control their respective systems. Detector settings live under ",[14,239,240],{},"Config.Search",[14,242,243],{},"Config.Terrain",[14,245,246],{},"Config.Gear",[14,248,249],{},"Config.SkillTree",".",[27,252,254],{"id":253},"dealer-placement","Dealer placement",[10,256,257,258,261],{},"The default dealer is near the Vespucci docks. Edit the existing ",[14,259,260],{},"locations"," list to move it or add another counter:",[263,264,270],"pre",{"className":265,"code":266,"filename":267,"language":268,"meta":269,"style":269},"language-lua shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","locations = {\n    { x = -758.66674, y = -1522.25369, z = 5.05, heading = 22.86561 },\n},\n","config/config.lua — Config.Shop.locations","lua","",[14,271,272,288,332],{"__ignoreMap":269},[273,274,277,281,285],"span",{"class":275,"line":276},"line",1,[273,278,280],{"class":279},"sTEyZ","locations ",[273,282,284],{"class":283},"sMK4o","=",[273,286,287],{"class":279}," {\n",[273,289,291,294,296,299,303,306,308,310,313,316,318,321,324,326,329],{"class":275,"line":290},2,[273,292,293],{"class":279},"    { x ",[273,295,284],{"class":283},[273,297,298],{"class":283}," -",[273,300,302],{"class":301},"sbssI","758.66674",[273,304,305],{"class":279},", y ",[273,307,284],{"class":283},[273,309,298],{"class":283},[273,311,312],{"class":301},"1522.25369",[273,314,315],{"class":279},", z ",[273,317,284],{"class":283},[273,319,320],{"class":301}," 5.05",[273,322,323],{"class":279},", heading ",[273,325,284],{"class":283},[273,327,328],{"class":301}," 22.86561",[273,330,331],{"class":279}," },\n",[273,333,335],{"class":275,"line":334},3,[273,336,337],{"class":279},"},\n",[10,339,340,341,344,345,348,349,352,353,356,357,233,360,363],{},"The dealer spawns one metre below the configured ",[14,342,343],{},"z"," value; the default ground level is approximately ",[14,346,347],{},"4.05",". Check the NPC position on your map after moving it. ",[14,350,351],{},"model"," chooses the NPC, ",[14,354,355],{},"blip"," controls its map marker, and ",[14,358,359],{},"interactDistance",[14,361,362],{},"serverDistance"," control interaction and server validation. Keep the server distance large enough for the intended interaction.",[10,365,366,367,370],{},"The shop supports the configured Sky target provider and the proximity key. Changing ",[14,368,369],{},"Config.Keys"," sets default bindings; players may already have their own saved FiveM bindings.",[27,372,374],{"id":373},"prices-and-equipment","Prices and equipment",[10,376,377,378,220,381,220,384,233,387,390],{},"Equipment prices and purchase requirements are in ",[14,379,380],{},"Config.Gear.detectors",[14,382,383],{},".shovels",[14,385,386],{},".magnets",[14,388,389],{},".scuba",". Higher tiers still need to be purchased after the matching skill is learned.",[10,392,393,396,397,220,400,403,404,407,408,411],{},[14,394,395],{},"ServerConfig.Shop.Currency"," accepts ",[14,398,399],{},"money",[14,401,402],{},"cash"," or ",[14,405,406],{},"bank","; use the account supported by your framework setup. Sell prices are owned by the server and extended by the method-specific ",[14,409,410],{},"*_server.lua"," files. General skills can modify the player's final purchase and sale prices.",[10,413,414],{},"Reward weights are relative weights among eligible finds, not fixed percentages. Tier requirements, terrain, water type, skills and discovery protection can change the final chance. Adjust rewards, sale prices and progression together, and try the resulting player journey before opening the server.",[27,416,418],{"id":417},"search-areas-and-custom-maps","Search areas and custom maps",[10,420,421,422,425,426,429],{},"The default allowed routing bucket is ",[14,423,424],{},"0",", controlled by ",[14,427,428],{},"Config.Search.allowedBuckets",". Explicitly add other buckets if your server uses them for these activities.",[10,431,432,433,436,437,439,440,250],{},"Detector searches use suitable ground across the map; hotzones are optional modifiers rather than the only searchable areas. ",[14,434,435],{},"Config.Terrain.excludedAreas"," can exclude circular areas. Water activities use ",[14,438,143],{},"; custom water maps need matching server boundaries as well as suitable in-game water and ground. Add custom bin model names to ",[14,441,442],{},"Config.Trash.models",[27,444,446],{"id":445},"administrator-access","Administrator access",[10,448,449,450,453,454,459],{},"The default permission is ",[14,451,452],{},"sky_treasurehunt.admin",". See ",[455,456,458],"a",{"href":457},"../reference/commands","Commands"," for access setup and the exact scope of the level and skill-reset commands.",[10,461,462,463,466,467,470,471,474],{},"If you enable ",[14,464,465],{},"ServerConfig.Admin.requireDuty",", implement ",[14,468,469],{},"ServerConfig.IsAdminOnDuty"," for your admin system. Its supplied implementation returns ",[14,472,473],{},"false",", so enabling the duty requirement without connecting that function denies in-game administration.",[476,477,478],"style",{},"html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":269,"searchDepth":276,"depth":290,"links":480},[481,482,483,484,485,486],{"id":29,"depth":290,"text":30},{"id":195,"depth":290,"text":196},{"id":253,"depth":290,"text":254},{"id":373,"depth":290,"text":374},{"id":417,"depth":290,"text":418},{"id":445,"depth":290,"text":446},"Find the Lua settings for language, the dealer, equipment, search areas, rewards, progression and administrator access.","md",null,{},true,"/docs/scripts/treasurehunt/setup/configuration",{"title":5,"description":487},{"loc":492},"1.docs/scripts/6.treasurehunt/2.setup/2.configuration","LilY_kt5CgYrImI4uyo4eFnLiXEj0WrTo8h-uqX2fLM",[498,503],{"title":499,"path":500,"stem":501,"description":502,"children":-1},"Installation","/docs/scripts/treasurehunt/setup/installation","1.docs/scripts/6.treasurehunt/2.setup/1.installation","Set up Sky Treasure Hunt with Sky Base, Jobs Base, OneSync, oxmysql and the required inventory items.",{"title":504,"path":505,"stem":506,"description":507,"children":-1},"First steps","/docs/scripts/treasurehunt/setup/first-steps","1.docs/scripts/6.treasurehunt/2.setup/3.first-steps","Buy starter equipment, recover a first find, use the album, sell items and try the other search methods.",[],1791911969844]