STG ScriptsDocumentation
Gold Panning

Configuration

Every option in STG Gold Panning config.lua, from framework and target to rewards, the panning table, the buyer NPC, blips and notifications.

All settings live in stg-goldpanning/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, fi, ar, he, jp, zh. To change a text, edit the matching file in stg-goldpanning/locales/.

General

Config.Framework = "auto"
Config.Target = "auto"
Config.Tutorial = true
Config.waterTime = 7000
Config.placeEverywhere = false

Prop

Type

Items

Config.Items = {
    table = "purify_table",
    pan = "gold_pan",
    gold_nugget = "gold_nugget"
}

Prop

Type

If you rename an item here, rename it in your inventory too.

Panning

Config.Time = 10000
Config.Reward = {
    min = 1,
    max = 3
}

Prop

Type

Table

Config.Table = {
    model = "bkr_prop_weed_table_01b",
    time = 4000
}

Prop

Type

With ox_target or qb-target, the Purify the water and Remove the table options are added to every prop of this model, so pick a model that is not used elsewhere on your map.

Buyer

Config.Sell = {
    coords = {
        vec4(1081.9049, -1985.6462, 29.8896, 45.7552),
    },
    npc = "s_m_y_dockwork_01",
    price = 500,
}

Prop

Type

Blips

Config.Blips = {
    sell = {
        sprite = 605,
        scale = 0.7,
        color = 5,
        visible = true
    },
    river = {
        coords = {
            vec3(-1172.4408, 4372.1841, 6.2629),
        },
        sprite = 618,
        scale = 0.7,
        color = 5,
        visible = true
    }
}

Prop

Type

Notifications

Config.CustomNotify = true
Config.Functions = {
    ["helpNotify"] = function(message, icon)
        -- key prompts
    end,
    ["hideHelpNotify"] = function()
        -- hides the key prompt
    end,
    ["notify"] = function(type, message)
        -- notifications
    end,
}
  • CustomNotify: true uses ox_lib, with key prompts in a text UI on the right side of the screen and ox_lib notifications. false uses the GTA help text for key prompts and your framework's own notifications.
  • helpNotify and hideHelpNotify: show and hide key prompts like "Press [E] to fill the tray". Replace the bodies to use your own text UI.
  • notify: replace the body to use your own notification system. type is success or error.

Still having trouble?

Open a ticket on our Discord. Our team answers around 15 hours a day.

Get help on Discord

On this page