STG ScriptsDocumentation
Maple Syrup

Installation

Install STG Maple Syrup on your FiveM server, add the items to your inventory and start it.

Maple Syrup

STG Maple Syrup

ESXQBCoreQBOX
View in store

Download the script

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

Move the resource

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

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

Install the dependencies

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

Add the items

The script uses 8 items. Pick the tab for your inventory. QBOX servers, and any ESX or QBCore server running ox_inventory, use the ox_inventory tab.

Add these entries to ox_inventory/data/items.lua:

["stg_maple_drill"] = {
    label = "Hand Drill",
    weight = 1500,
    stack = false,
    close = true,
    description = "Drills the tap hole in a maple tree.",
    client = {
        event = 'stg-maplesyrup:client:useDrill'
    }
},

["stg_maple_tap"] = {
    label = "Maple Tap",
    weight = 100,
    stack = true,
    close = true,
    description = "Steel spile that guides the sap into the bucket."
},

["stg_maple_bucket"] = {
    label = "Sap Bucket",
    weight = 500,
    stack = true,
    close = true,
    description = "Hangs under the tap and collects sap."
},

["stg_maple_wood"] = {
    label = "Firewood",
    weight = 1000,
    stack = true,
    close = true,
    description = "Fuel for the evaporator."
},

["stg_maple_evaporator"] = {
    label = "Evaporator",
    weight = 15000,
    stack = false,
    close = true,
    description = "Portable wood fired boiler that turns sap into syrup.",
    client = {
        event = 'stg-maplesyrup:client:useEvaporator'
    }
},

["stg_maple_bottle"] = {
    label = "Empty Bottle",
    weight = 200,
    stack = true,
    close = true,
    description = "An empty glass bottle for maple syrup."
},

["stg_maple_sap"] = {
    label = "Maple Sap",
    weight = 1000,
    stack = true,
    close = true,
    description = "Raw sap straight from the tree, boil it down into syrup."
},

["stg_maple_syrup"] = {
    label = "Maple Syrup",
    weight = 500,
    stack = true,
    close = true,
    description = "Golden maple syrup, boiled down from forty times its weight in sap."
},

Add these lines to QBShared.Items in qb-core/shared/items.lua:

stg_maple_drill                     = { name = 'stg_maple_drill', label = 'Hand Drill', weight = 1500, type = 'item', image = 'stg_maple_drill.png', unique = true, useable = true, shouldClose = true, description = 'Drills the tap hole in a maple tree.' },
stg_maple_tap                       = { name = 'stg_maple_tap', label = 'Maple Tap', weight = 100, type = 'item', image = 'stg_maple_tap.png', unique = false, useable = false, shouldClose = true, description = 'Steel spile that guides the sap into the bucket.' },
stg_maple_bucket                    = { name = 'stg_maple_bucket', label = 'Sap Bucket', weight = 500, type = 'item', image = 'stg_maple_bucket.png', unique = false, useable = false, shouldClose = true, description = 'Hangs under the tap and collects sap.' },
stg_maple_wood                      = { name = 'stg_maple_wood', label = 'Firewood', weight = 1000, type = 'item', image = 'stg_maple_wood.png', unique = false, useable = false, shouldClose = true, description = 'Fuel for the evaporator.' },
stg_maple_evaporator                = { name = 'stg_maple_evaporator', label = 'Evaporator', weight = 15000, type = 'item', image = 'stg_maple_evaporator.png', unique = true, useable = true, shouldClose = true, description = 'Portable wood fired boiler that turns sap into syrup.' },
stg_maple_bottle                    = { name = 'stg_maple_bottle', label = 'Empty Bottle', weight = 200, type = 'item', image = 'stg_maple_bottle.png', unique = false, useable = false, shouldClose = true, description = 'An empty glass bottle for maple syrup.' },
stg_maple_sap                       = { name = 'stg_maple_sap', label = 'Maple Sap', weight = 1000, type = 'item', image = 'stg_maple_sap.png', unique = false, useable = false, shouldClose = true, description = 'Raw sap straight from the tree, boil it down into syrup.' },
stg_maple_syrup                     = { name = 'stg_maple_syrup', label = 'Maple Syrup', weight = 500, type = 'item', image = 'stg_maple_syrup.png', unique = false, useable = false, shouldClose = true, description = 'Golden maple syrup, boiled down from forty times its weight in sap.' },

Run this query on your database:

INSERT INTO items (name, label)
VALUES
    ('stg_maple_drill', 'Hand Drill'),
    ('stg_maple_tap', 'Maple Tap'),
    ('stg_maple_bucket', 'Sap Bucket'),
    ('stg_maple_wood', 'Firewood'),
    ('stg_maple_evaporator', 'Evaporator'),
    ('stg_maple_bottle', 'Empty Bottle'),
    ('stg_maple_sap', 'Maple Sap'),
    ('stg_maple_syrup', 'Maple Syrup');

Add the item images

Copy every image from stg-maplesyrup/[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