STG ScriptsDocumentation
Pause Menu

Configuration

Every option in STG Pause Menu, from the language and social links to the Discord bot token for player avatars.

Most settings live in stg_pausemenu/config.lua. The Discord bot token is in stg_pausemenu/settings.lua. Both files stay editable in the escrow version. Restart the resource after a change.

Language

STG.Language = "en"

Available: en, de, fr, es, pt, it, nl, pl, sv, ar, jp, zh, he, fi. To change a text, edit the matching file in stg_pausemenu/locales/. An unknown code falls back to en.

STG.Links = {
    discord = "https://discord.gg/stg",
    instagram = "https://instagram.com",
    youtube = "https://youtube.com"
}

Prop

Type

Each button opens the link in the player's web browser. Use full URLs starting with https://.

Discord avatars

Settings = {
    botToken = ""
}

Set in stg_pausemenu/settings.lua. With a Discord bot token (not a webhook), the menu shows the player's Discord profile picture. Players without a Discord identifier, or with no token set, get the default picture. See the guide to create a Discord bot token.

The token stays on the server. The picture is loaded the first time a player opens the menu in a session.

Character data

The menu reads the character details from your framework:

FieldSource
Namefirstname and lastname columns of users
JobThe job's label from the jobs table
Phone numberphone_number column of users, if your phone script adds it
Cash and bankaccounts column of users
Playtimeplaytime column of users, added by the SQL file
FieldSource
Namecharinfo.firstname and charinfo.lastname
JobThe job label
Phone numbercharinfo.phone
Cash and bankThe cash and bank money types
Playtimeplaytime in the player's metadata

A field shows Unknown when the value is missing. Cash, bank and job update live while the player is online, on both frameworks.

Still having trouble?

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

Get help on Discord

On this page