Configuration
Every option in STG Gold Panning V2 config/config.lua, from finds and drop rates to river zones, the buyer NPC, the shop, leveling and abilities.
All settings live in stg-goldpanningv2/config/config.lua. The file stays editable in the escrow version. Restart the resource after a change.
Language
Config.Language = 'en'Available: en, de, fr, es, pt, it, nl, pl, sv, no, fi, cs, ar, he, jp, zh. To change a text, edit the matching file in stg-goldpanningv2/locales/. Find names, shop names and ability names also come from these files.
General
Config.TargetSystem = 'auto'
Config.MoneyType = 'cash'
Config.AutoInstallSQL = trueProp
Type
Usable items
Config.Items = {
Pan = 'stg_goldpan',
Table = 'stg_goldtable'
}Prop
Type
If you rename an item here, rename it in your inventory and in Config.Shop too.
Panning
Config.Panning = {
shakeDuration = 7000,
shakeControl = 'both'
}Prop
Type
Finds per sift
Config.FindsPerSift = {
min = 0,
max = 3
}Prop
Type
Finds
Everything a find needs lives in one entry. Delete an entry and it stops spawning, selling and giving XP.
Config.Finds = {
{
id = 'nugget',
item = 'stg_goldnugget',
label = Locale('find_nugget'),
description = Locale('find_nugget_desc'),
prop = 'stg_goldnugget',
image = 'assets/img/items/stg_goldnugget.png',
percent = 80,
xp = 10,
sell = 85
},
{
id = 'big_nugget',
item = 'stg_goldnugget_big',
-- ...
percent = 15,
xp = 25,
sell = 220,
luckAbility = 'big_nugget_luck'
},
{
id = 'emerald',
item = 'stg_emerald',
-- ...
percent = 5,
xp = 60,
sell = 450,
luckAbility = 'gemstone_eye'
}
}Prop
Type
To add a find, add a new entry with its own id, add the item to your inventory and put its image in web/assets/img/items/. It shows up in the pan and in the sell list automatically.
NPC
The buyer opens the Gold Panning menu with the Buy, Sell and Abilities tabs.
Config.Npc = {
model = 'a_m_m_farmer_01',
blip = {
enabled = true,
sprite = 618,
color = 5,
scale = 0.8
},
locations = {
vec4(1081.9049, -1985.6462, 29.8896, 45.7552)
}
}Prop
Type
River zones
Config.Rivers = {
restrictToZones = true,
radius = 30.0,
visible = true,
sprite = 618,
color = 5,
scale = 0.7,
coords = {
vec3(-1172.4408, 4372.1841, 6.2629)
}
}Prop
Type
Shop
The buy list holds the tools. The sell list is built automatically from Config.Finds.
Config.Shop = {
buy = {
{
item = 'stg_goldpan',
label = Locale('shop_pan'),
description = Locale('shop_pan_desc'),
price = 150,
image = 'assets/img/items/stg_goldpan.png'
},
{
item = 'stg_goldtable',
label = Locale('shop_table'),
description = Locale('shop_table_desc'),
price = 400,
image = 'assets/img/items/stg_goldtable.png'
}
}
}Prop
Type
Leveling
Config.Leveling = {
maxLevel = 50,
pointsPerLevel = 1,
moneyPerLevel = 500,
segments = 6,
baseXP = 250,
perLevel = 120
}Prop
Type
With the defaults, level 1 to 2 needs 250 XP, level 2 to 3 needs 370 XP, level 3 to 4 needs 490 XP, and so on.
Abilities
Players spend ability points on these in the Abilities tab. They show in the order of this table, with names from ability_<id> and ability_<id>_desc in the locale files.
Config.Abilities = {
{ id = 'gold_yield', active = true, max = 5, cost = 1, value = 0.5 },
{ id = 'big_nugget_luck', active = true, max = 5, cost = 1, value = 0.05 },
{ id = 'gemstone_eye', active = true, max = 5, cost = 1, value = 0.03 },
{ id = 'faster_panning', active = true, max = 5, cost = 1, value = 0.08 },
{ id = 'quick_fill', active = true, max = 5, cost = 1, value = 0.10 }
}Prop
Type
What value does for each ability:
| Ability | Effect per level | At level 5 with the defaults |
|---|---|---|
gold_yield | Adds value to Config.FindsPerSift.max, rounded down | +2 finds per pan |
big_nugget_luck | Raises the spawn chance of finds with luckAbility = 'big_nugget_luck' by value (0.05 = 5%) | +25% |
gemstone_eye | Raises the spawn chance of finds with luckAbility = 'gemstone_eye' by value | +15% |
faster_panning | Lowers shakeDuration by value (0.08 = 8%), up to 80% in total | 40% less shaking |
quick_fill | Fills the pan faster in water by value (0.10 = 10%) | 50% faster |
Still having trouble?
Open a ticket on our Discord. Our team answers around 15 hours a day.