STG ScriptsDocumentation
Yoga

Configuration

Every option in STG Yoga shared/config.lua, from the language and item to the breathing volume, stress relief and NPC yoga class locations.

All settings live in stg-yoga/shared/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, ko, zh. To change a text, edit the matching file in stg-yoga/locales/.

Item

Config.Item = 'stg_yoga_mat'

Prop

Type

Breathing sound

Config.Volume = 0.5

Prop

Type

Stress relief

Config.Stress = {
    PerBreath = 2,
    FlowBonus = 5,
}

Prop

Type

Stress is lowered on QBCore and QBOX through the stress metadata, so any HUD that reads it updates right away.

Yoga classes

Config.Classes = {
    vec4(-1543.9819, -1071.9442, 5.5104, 136.7473), -- Vespucci Beach
}

Each entry is one NPC yoga class: an instructor, five students and three free mats in the back row. The coordinates are the spot of the middle free mat and the heading is the direction it faces, toward the instructor. The easiest way to add a class is to stand where the middle free mat should be, face where the instructor should stand and copy your coordinates and heading.

The class appears when a player comes within 80 meters and disappears when they leave. Players press E next to a free mat to choose a flow and join. Remove every entry to turn the classes off.

Class blip

Config.ClassBlip = {
    Enabled = true,
    Sprite = 197,
    Color = 8,
    Scale = 0.8,
}

Prop

Type

The blip name comes from the class_blip text in the locale files.

Still having trouble?

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

Get help on Discord

On this page