Documentation
wnt_doj
Department of JusticeCourt, MDT, citations and case files — a complete DOJ framework for your legal roleplay.
QBCoreESXQbox
Installation
Follow these steps to get wnt_doj running. It works out of the box on QBCore, ESX and Qbox.
- 1
Download the resource
Grab the latest release from your account dashboard or straight from your CFX keymaster. - 2
Drop it into resources
Extract the folder into your server'sresourcesdirectory. - 3
Add it to your server.cfg
Below your framework and oxmysql:server.cfgensure oxmysql ensure wnt_doj - 4
Import the database
Run the included SQL file once — it creates every table for you:bashmysql -u root -p yourdatabase < wnt_doj.sql - 5
Configure & restart
SetConfig.Frameworkinconfig.lua, restart your server and you're done!
Make sure wnt_doj loads after your framework and oxmysql so its exports register correctly.
Configuration
Everything lives in config.lua. Just set your framework and you're good to go:
config.lua
Config = {}
Config.Framework = 'esx' -- 'qb' | 'esx' | 'qbox'
Config.Locale = 'en'
Config.MDTCommand = 'mdt'
Config.CourtChannel = 128Developer API
Exports and events you can use from your own resources:
exports['wnt_doj']:OpenMDT(source)Opens the MDT for the given player.
exports['wnt_doj']:CreateCase(data)Creates a new court case and returns its id.
TriggerEvent('wnt_doj:server:caseCreated', caseId)Fired server-side whenever a new case is opened.
Troubleshooting
If wnt_dojwon't start, check your console for missing dependencies and open a ticket in our Discord with the output.