GIG ScriptsGIG Scripts

Getting started

Dependencies, start order and the files you will edit.

Requirements

Every resource needs:

  • ox_lib, started before our resources.
  • A supported framework: Qbox (qbx_core), QB-Core (qb-core) or ESX (es_extended). Some resources also run standalone.
  • An inventory: ox_inventory, qs-inventory, or the framework's own item system.

Resources that store data also need oxmysql. Some need one of our asset packs for props and sounds. Each resource page lists exactly what it depends on.

Install

  1. Drop the resource folder into your resources directory. Keep the folder name as it is in the download (for example gig-hud); the resources reference each other by these names.
  2. If the resource page lists an asset pack, drop that folder in as well.
  3. Add the items from the resource page to your inventory, and copy the icons from the resource's icons/ folder into your inventory's image folder.
  4. Add the ensure lines to your server.cfg, after ox_lib, your framework and your inventory:
server.cfg
ensure ox_lib
ensure oxmysql
ensure qbx_core        # or qb-core / es_extended
ensure ox_inventory    # or qs-inventory

ensure gig-heistAssets # asset packs come first
ensure gig-shopRobbery

Database tables are created on first start. You never need to import an SQL file.

Folder layout

Every resource looks like this:

gig-example/
├── fxmanifest.lua
├── cfg.lua            settings, shared with clients
├── cfg_sv.lua         server-only settings (webhooks, API keys) — only when the resource needs one
├── bridge/            framework / inventory / notification glue, editable
├── client/
├── server/
├── locales/           en, de, es, fr, pl
├── icons/             inventory icons for the items the resource uses
└── versionCheck.lua   prints a message in the console when a newer version exists

cfg.lua, cfg_sv.lua, locales/ and everything under bridge/ are open. The rest is protected by Cfx.re's Escrow System.

Config

All settings are in cfg.lua, in one cfg table. The two keys you will see in every resource:

cfg.framework = 'auto' -- 'auto' | 'qbx' | 'qb' | 'esx'
cfg.inventory = 'auto' -- 'auto' | 'ox' | 'qs' | 'qb' | 'esx'

Leave them on auto. Detection is based on which resources are started, so it only goes wrong if you renamed qbx_core, qb-core, es_extended, ox_inventory or qs-inventory. In that case force the value. See The bridge for what happens behind these keys.

Anything secret goes in cfg_sv.lua. That file is only loaded on the server, so webhook URLs and API keys never reach a client.

Language

Translations use ox_lib's locale system. Set the language once for the whole server in server.cfg:

server.cfg
setr ox:locale de

Supported: en, de, es, fr, pl. To add another language, copy locales/en.json, translate the values and save it under the new code.

Telemetry

Each resource sends a small anonymous usage report every five minutes. It only contains what your server already shows in the FiveM server list, plus the framework and inventory the bridge picked. Turn it off for every GIG resource at once with set gig_telemetry false in server.cfg. The full field list is on the Telemetry page.

Updating

Replace the resource folder, then put your cfg.lua and cfg_sv.lua back. Compare them against the new defaults, because new versions sometimes add keys. The version check prints the changelog in the server console on start when you are behind.

On this page