Studios
Licensinghouse-3.jpg

Installation

SoonLicensingQbox
PAGE 02 OF 06  ·  OVERVIEW → INSTALLATION → CONFIGURATIONdocs.glitchstudios.dev
Browse docs

Requirements#

The server

Framework qbx_core (Qbox). ESX and plain QBCore are not supported.
Resources ox_lib, oxmysql, ox_target, ox_inventory
Items The card items named in Config.Licences. The defaults are driver_license and weaponlicense.
Database A MySQL or MariaDB database reachable through oxmysql. Two tables are created on start.
Optional qbx_idcard (card metadata), glitch-admin (audit log), glitch-treasury (fees booked as state revenue), glitch-pauseMenu (map legend name), glitch-huntingJob (the hunting licence), glitch-fishingJob (the fishing and boat licences)

All optional resources are detected at run time. A licence whose store resource is not running shows as "Not available right now." and cannot be bought. Set store = 'meta' on a row to keep it self-contained.

The package was tested with qbx_core 1.24.0, ox_inventory 2.48.0, ox_lib 3.40.0, ox_target 1.17.2 and oxmysql 2.14.2.

Installation steps#

  1. Put glitch-licensing in your resources folder. The folder name is case-sensitive and must stay glitch-licensing.

  2. Make sure the card items exist in ox_inventory/data/items.lua. If you do not want a card for a licence, remove card = ... from its row.

  3. Optionally run sql/install.sql. The same two tables are created on start.

  4. Add to server.cfg, after ox_lib, oxmysql, qbx_core, ox_target and ox_inventory:

    ensure glitch-licensing
    
  5. Open config.lua and move the clerk ped to your own spot.

  6. Restart the server. Walk up to the clerk and target them to open the menu.

No ACE permissions are needed. Police access is whatever your MDT enforces before it calls the exports.

Updating#

Replace everything except config.lua, merge any new keys from the new config.lua into yours, then restart the resource. The tables are created or left alone on start. If you also run glitch-huntingJob or glitch-fishingJob, restart them first.