Discord Store
Starter

Installation

No manual SQL needed — the tables are created on first start. Set your framework, garage and items, then start it.

Steps

1
Copy the resource
Place the dh_starter folder in your resources directory.
2
Database
The resource creates its tables on first start. install.sql is there if you'd rather import them by hand.
3
Set your framework
In config.lua, set Config.Framework, Config.Inventory and whether you use a target.
4
Pick your garage
Set Config.Garage.Provider if you're giving starter vehicles.
5
Check your items
Every item in Config.StarterPack must exist in your inventory.
6
Place the officer
Set Config.Location — the NPC, marker and blip all use it.
7
Add to server.cfg
After oxmysql, your framework, inventory and garage.

server.cfg

server.cfg
ensure oxmysql
# framework (one of):
ensure es_extended
# ensure qb-core

ensure ox_inventory
ensure dh_garage      # or your garage (only for starter vehicles)
ensure dh_starter

SQL (optional)

install.sql
CREATE TABLE IF NOT EXISTS `dh_starter_players` (
    `id` INT(11) NOT NULL AUTO_INCREMENT,
    `identifier` VARCHAR(64) NOT NULL,
    `item` TINYINT(1) NOT NULL DEFAULT 0,
    `vehicle` TINYINT(1) NOT NULL DEFAULT 0,
    `civilian` TINYINT(1) NOT NULL DEFAULT 0,
    `criminal` TINYINT(1) NOT NULL DEFAULT 0,
    `onboarding` LONGTEXT NULL,
    PRIMARY KEY (`id`),
    UNIQUE KEY `ux_dh_starter_identifier` (`identifier`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

CREATE TABLE IF NOT EXISTS `dh_starter_posts` (
    `id` INT(11) NOT NULL AUTO_INCREMENT,
    `category` LONGTEXT NULL,
    `data` LONGTEXT NULL,
    `text` LONGTEXT NULL,
    PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

Guidebook admins

Players whose framework group is in Config.GuideBook.AdminPermissions (default god, admin) get an Admin Mode button in the guidebook to add, edit and delete posts.

Troubleshooting

"You have already claimed…" — Claims are per character and stored in dh_starter_players. Delete the row to let someone claim again.
Starter vehicle doesn't show in the garage — Config.Garage.Provider must match your garage, and its entry in Defaults must match your garage's columns.
"All vehicle spawn points are occupied" — Add more points to Config.VehicleSpawn or clear the area.
No keys for the street vehicle — Edit Config.Functions.VehicleKeys to call your keys resource.
Items missing from the pack — Every Name must exist in your inventory.