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#
Put
glitch-licensingin your resources folder. The folder name is case-sensitive and must stayglitch-licensing.Make sure the card items exist in
ox_inventory/data/items.lua. If you do not want a card for a licence, removecard = ...from its row.Optionally run
sql/install.sql. The same two tables are created on start.Add to
server.cfg, after ox_lib, oxmysql, qbx_core, ox_target and ox_inventory:ensure glitch-licensingOpen
config.luaand move the clerk ped to your own spot.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.