STG ScriptsDocumentation
Food Stands

Installation

Install STG Food Stands on your FiveM server, add the food and supply items to your inventory and start it.

Food Stands

STG Food Stands

ESXQBCoreQBOX
View in store

Download the script

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

Move the resource

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

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

Install the dependencies

Food Stands needs ox_lib, oxmysql and stg_lib. Skip this step if your server already runs them. The database table stg_foodstands is created on the first start, there is no SQL file to import.

Add the items

The script uses 17 items: the hot dog, burger and taco that customers eat, and the supplies owners buy at the depot and load into their stand. 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_hotdog'] = {
    label = 'Hot Dog',
    weight = 250,
    stack = true,
    close = true,
    client = {
        image = 'stg_hotdog.png',
        export = 'stg-foodstands.eat'
    }
},

['stg_burger'] = {
    label = 'Burger',
    weight = 250,
    stack = true,
    close = true,
    client = {
        image = 'stg_burger.png',
        export = 'stg-foodstands.eat'
    }
},

['stg_taco'] = {
    label = 'Taco',
    weight = 250,
    stack = true,
    close = true,
    client = {
        image = 'stg_taco.png',
        export = 'stg-foodstands.eat'
    }
},

['stg_hotdog_sausages'] = {
    label = 'Sausage Pack',
    weight = 600,
    stack = true,
    close = true,
    description = '12 sausages for a hot dog stand',
    client = {
        image = 'stg_hotdog_sausages.png'
    }
},

['stg_hotdog_buns'] = {
    label = 'Hot Dog Buns',
    weight = 400,
    stack = true,
    close = true,
    description = '12 buns for a hot dog stand',
    client = {
        image = 'stg_hotdog_buns.png'
    }
},

['stg_hotdog_toppings'] = {
    label = 'Hot Dog Topping Refill',
    weight = 2000,
    stack = true,
    close = true,
    description = 'Refills every topping tray of a hot dog stand',
    client = {
        image = 'stg_hotdog_toppings.png'
    }
},

['stg_burger_patties'] = {
    label = 'Burger Patties',
    weight = 1200,
    stack = true,
    close = true,
    description = '12 raw patties for a burger stand',
    client = {
        image = 'stg_burger_patties.png'
    }
},

['stg_burger_buns'] = {
    label = 'Burger Buns',
    weight = 500,
    stack = true,
    close = true,
    description = '12 buns for a burger stand',
    client = {
        image = 'stg_burger_buns.png'
    }
},

['stg_burger_eggs'] = {
    label = 'Egg Carton',
    weight = 400,
    stack = true,
    close = true,
    description = '6 eggs for a burger stand',
    client = {
        image = 'stg_burger_eggs.png'
    }
},

['stg_burger_bacon'] = {
    label = 'Bacon Pack',
    weight = 300,
    stack = true,
    close = true,
    description = '6 bacon batches for a burger stand',
    client = {
        image = 'stg_burger_bacon.png'
    }
},

['stg_burger_toppings'] = {
    label = 'Burger Topping Refill',
    weight = 2000,
    stack = true,
    close = true,
    description = 'Refills every topping bin of a burger stand',
    client = {
        image = 'stg_burger_toppings.png'
    }
},

['stg_taco_shells'] = {
    label = 'Taco Shells',
    weight = 300,
    stack = true,
    close = true,
    description = '12 shells for a taco stand',
    client = {
        image = 'stg_taco_shells.png'
    }
},

['stg_taco_asada'] = {
    label = 'Asada',
    weight = 800,
    stack = true,
    close = true,
    description = '4 cuts of beef for a taco stand',
    client = {
        image = 'stg_taco_asada.png'
    }
},

['stg_taco_pollo'] = {
    label = 'Pollo',
    weight = 800,
    stack = true,
    close = true,
    description = '4 cuts of chicken for a taco stand',
    client = {
        image = 'stg_taco_pollo.png'
    }
},

['stg_taco_chorizo'] = {
    label = 'Chorizo',
    weight = 800,
    stack = true,
    close = true,
    description = '4 cuts of chorizo for a taco stand',
    client = {
        image = 'stg_taco_chorizo.png'
    }
},

['stg_taco_trompo'] = {
    label = 'Al Pastor Trompo',
    weight = 5000,
    stack = true,
    close = true,
    description = 'A marinated pork trompo for a taco stand',
    client = {
        image = 'stg_taco_trompo.png'
    }
},

['stg_taco_toppings'] = {
    label = 'Taco Topping Refill',
    weight = 2000,
    stack = true,
    close = true,
    description = 'Refills every topping bin of a taco stand',
    client = {
        image = 'stg_taco_toppings.png'
    }
},

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

stg_hotdog = { name = 'stg_hotdog', label = 'Hot Dog', weight = 250, type = 'item', image = 'stg_hotdog.png', unique = false, useable = true, shouldClose = true, description = 'Fresh from the stand' },
stg_burger = { name = 'stg_burger', label = 'Burger', weight = 250, type = 'item', image = 'stg_burger.png', unique = false, useable = true, shouldClose = true, description = 'Fresh from the stand' },
stg_taco = { name = 'stg_taco', label = 'Taco', weight = 250, type = 'item', image = 'stg_taco.png', unique = false, useable = true, shouldClose = true, description = 'Fresh from the stand' },
stg_hotdog_sausages = { name = 'stg_hotdog_sausages', label = 'Sausage Pack', weight = 600, type = 'item', image = 'stg_hotdog_sausages.png', unique = false, useable = false, shouldClose = false, description = '12 sausages for a hot dog stand' },
stg_hotdog_buns = { name = 'stg_hotdog_buns', label = 'Hot Dog Buns', weight = 400, type = 'item', image = 'stg_hotdog_buns.png', unique = false, useable = false, shouldClose = false, description = '12 buns for a hot dog stand' },
stg_hotdog_toppings = { name = 'stg_hotdog_toppings', label = 'Hot Dog Topping Refill', weight = 2000, type = 'item', image = 'stg_hotdog_toppings.png', unique = false, useable = false, shouldClose = false, description = 'Refills every topping tray of a hot dog stand' },
stg_burger_patties = { name = 'stg_burger_patties', label = 'Burger Patties', weight = 1200, type = 'item', image = 'stg_burger_patties.png', unique = false, useable = false, shouldClose = false, description = '12 raw patties for a burger stand' },
stg_burger_buns = { name = 'stg_burger_buns', label = 'Burger Buns', weight = 500, type = 'item', image = 'stg_burger_buns.png', unique = false, useable = false, shouldClose = false, description = '12 buns for a burger stand' },
stg_burger_eggs = { name = 'stg_burger_eggs', label = 'Egg Carton', weight = 400, type = 'item', image = 'stg_burger_eggs.png', unique = false, useable = false, shouldClose = false, description = '6 eggs for a burger stand' },
stg_burger_bacon = { name = 'stg_burger_bacon', label = 'Bacon Pack', weight = 300, type = 'item', image = 'stg_burger_bacon.png', unique = false, useable = false, shouldClose = false, description = '6 bacon batches for a burger stand' },
stg_burger_toppings = { name = 'stg_burger_toppings', label = 'Burger Topping Refill', weight = 2000, type = 'item', image = 'stg_burger_toppings.png', unique = false, useable = false, shouldClose = false, description = 'Refills every topping bin of a burger stand' },
stg_taco_shells = { name = 'stg_taco_shells', label = 'Taco Shells', weight = 300, type = 'item', image = 'stg_taco_shells.png', unique = false, useable = false, shouldClose = false, description = '12 shells for a taco stand' },
stg_taco_asada = { name = 'stg_taco_asada', label = 'Asada', weight = 800, type = 'item', image = 'stg_taco_asada.png', unique = false, useable = false, shouldClose = false, description = '4 cuts of beef for a taco stand' },
stg_taco_pollo = { name = 'stg_taco_pollo', label = 'Pollo', weight = 800, type = 'item', image = 'stg_taco_pollo.png', unique = false, useable = false, shouldClose = false, description = '4 cuts of chicken for a taco stand' },
stg_taco_chorizo = { name = 'stg_taco_chorizo', label = 'Chorizo', weight = 800, type = 'item', image = 'stg_taco_chorizo.png', unique = false, useable = false, shouldClose = false, description = '4 cuts of chorizo for a taco stand' },
stg_taco_trompo = { name = 'stg_taco_trompo', label = 'Al Pastor Trompo', weight = 5000, type = 'item', image = 'stg_taco_trompo.png', unique = false, useable = false, shouldClose = false, description = 'A marinated pork trompo for a taco stand' },
stg_taco_toppings = { name = 'stg_taco_toppings', label = 'Taco Topping Refill', weight = 2000, type = 'item', image = 'stg_taco_toppings.png', unique = false, useable = false, shouldClose = false, description = 'Refills every topping bin of a taco stand' },

Run this query on your database:

INSERT INTO items (name, label)
VALUES
    ('stg_hotdog', 'Hot Dog'),
    ('stg_burger', 'Burger'),
    ('stg_taco', 'Taco'),
    ('stg_hotdog_sausages', 'Sausage Pack'),
    ('stg_hotdog_buns', 'Hot Dog Buns'),
    ('stg_hotdog_toppings', 'Hot Dog Topping Refill'),
    ('stg_burger_patties', 'Burger Patties'),
    ('stg_burger_buns', 'Burger Buns'),
    ('stg_burger_eggs', 'Egg Carton'),
    ('stg_burger_bacon', 'Bacon Pack'),
    ('stg_burger_toppings', 'Burger Topping Refill'),
    ('stg_taco_shells', 'Taco Shells'),
    ('stg_taco_asada', 'Asada'),
    ('stg_taco_pollo', 'Pollo'),
    ('stg_taco_chorizo', 'Chorizo'),
    ('stg_taco_trompo', 'Al Pastor Trompo'),
    ('stg_taco_toppings', 'Taco Topping Refill');

The same entries are included in the resource as [SETUP]/items_ox_inventory.lua and [SETUP]/items_qb_core.lua.

Add the item images

Copy every image from stg-foodstands/[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, your target system, oxmysql and ox_lib in server.cfg:

ensure oxmysql
ensure ox_lib
# your framework: es_extended, qb-core or qbx_core
# your inventory, for example ox_inventory
# your target system, for example ox_target (optional)
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