Core Gangs
Requirements
Framework
QBCoreESXQBX
Target
ox_targetqb-target
Database
MySQL
Inventory
QBOXQS+4
Setup
1
Add the Resource
Place core_gangs into your server's resources folder.
resources/
[c8re]/
core_gangs/2
Import the Database
Execute the SQL file included with the resource:
sql
-- Run this in your database
SOURCE core_gangs.sql;Or import core_gangs.sql through your database management tool (HeidiSQL, phpMyAdmin, etc).
3
Configure the Framework
Open config.lua and set your framework:
lua
Config = {
Framework = 'qb-core', -- 'qb-core' or 'esx'
FrameworkResource = 'qb-core', -- Resource name of your framework
NewFrameworkVersion = true, -- ESX only: set false for versions < 1.8
}4
Configure Inventory
Set your inventory system in config.lua:
lua
UseInventory = 'qb-inventory', -- See supported options below
QBInventoryResourceName = 'qb-inventory', -- Only for qb-inventory forks| Inventory | Config Value |
|---|---|
| QBCore inventory (or forks: lj, ps) | 'qb-inventory' |
| ox_inventory | 'ox_inventory' |
| core_inventory | 'core_inventory' |
| qs-inventory (v2.6.0+) | 'qs-inventory' |
| codem-inventory (v1.6+) | 'codem-inventory' |
| tgiann-inventory | 'tgiann-inventory' |
| Custom | 'custom' |
TIP
If using 'custom', implement the functions in server/functions_override.lua.
5
Add the Currency Item
Add the special currency item to your inventory system. By default this is bitcoin:
lua
CurrencyName = 'bitcoin',- QBCore — Add the item to
qb-core/shared/items.lua - ESX — Add the item to your items database table
6
Start the Resource
Add to your server.cfg after your framework and oxmysql:
cfg
ensure oxmysql
ensure qb-core
ensure core_gangsDANGER
oxmysql must start before the script. Ensure the order is correct in your server.cfg.
7
Verify
- Start your server
- Join and check for any errors in the console
- Press
F9(default) or type/criminalto open the gang UI
