STG ScriptsDocumentation
Yoga

Installation

Install STG Yoga on your FiveM server, add the yoga mat item to your inventory and start it.

Yoga

STG Yoga

ESXQBCoreQBOX
View in store

Download the script

Sign in to the Cfx.re portal with the account you used at checkout and download stg-yoga from Granted Assets.

Move the resource

Extract the zip and place the stg-yoga folder inside the [STG] category folder in your resources directory.

resources/
└── [STG]/
    ├── stg_lib/
    └── stg-yoga/

Install the dependencies

Yoga needs ox_lib and stg_lib. Skip this step if your server already runs them.

Add the item

Pick the tab for your inventory. QBOX servers, and any ESX or QBCore server running ox_inventory, use the ox_inventory tab.

Add this entry to ox_inventory/data/items.lua:

["stg_yoga_mat"] = {
    label = "Yoga Mat",
    weight = 1500,
    stack = false,
    close = true,
    description = "Roll it out anywhere and find your balance.",
    client = {
        event = 'stg-yoga:client:useMat'
    }
},

Add this line to QBShared.Items in qb-core/shared/items.lua:

stg_yoga_mat                        = { name = 'stg_yoga_mat', label = 'Yoga Mat', weight = 1500, type = 'item', image = 'stg_yoga_mat.png', unique = true, useable = true, shouldClose = true, description = 'Roll it out anywhere and find your balance.' },

Run this query on your database:

INSERT INTO items (name, label)
VALUES ('stg_yoga_mat', 'Yoga Mat');

Add the item image

Copy stg_yoga_mat.png from stg-yoga/[SETUP]/item-images into your inventory's image folder, for example ox_inventory/web/images or qb-inventory/html/images.

Start the script

Make sure [STG] starts after your framework, your inventory and ox_lib in server.cfg:

ensure ox_lib
# your framework: es_extended, qb-core or qbx_core
# your inventory, for example ox_inventory
ensure stg_lib
ensure [STG]

Then restart the whole server.

Nothing happens or the console shows an error? See Common Errors.

Next steps

Still having trouble?

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

Get help on Discord

On this page