STG ScriptsDocumentation
Checkers

Installation

Install STG Checkers on your FiveM server in five steps, with item examples for ESX, QBCore and ox_inventory.

Checkers

STG Checkers

ESXQBCoreQBOX
View in store

Download the script

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

Move the resource

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

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

Install the dependencies

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

Add the item

Players place a table with the stg_checkers item. Add it to your inventory and copy stg_checkers.png from stg-checkers/[SETUP]/item-images/ into your inventory's image folder.

INSERT INTO items (name, label)
VALUES
    ('stg_checkers', 'Checkers');

Add this to qb-core/shared/items.lua:

['stg_checkers'] = { name = 'stg_checkers', label = 'Checkers', weight = 2000, type = 'item', image = 'stg_checkers.png', unique = false, useable = true, shouldClose = true, description = 'A foldable checkers board. Set it up anywhere and challenge someone.' },

Add this to ox_inventory/data/items.lua. The client.event line is what opens the clock setup, so keep it.

['stg_checkers'] = {
    label = 'Checkers',
    weight = 2000,
    stack = false,
    close = true,
    description = 'A foldable checkers board. Set it up anywhere and challenge someone.',
    client = {
        event = 'stg-checkers:client:useItem'
    }
},

Start the script

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

ensure ox_lib
# your framework: es_extended, qb-core or qbx_core
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