Skip to main content

Client Exports and Events

MDT Management

Is Open

This will return a boolean if the MDT is open or not

---@return boolean
local open = exports['pure_mdt']:IsMDTOpen()

Docket

All of these exports and events can be seen in client/framework/*yourframework*/ CreateTarget()

Create Court

With this export you can create a court case, you will need to do your own permission check beforehand

---@return boolean
local success = exports['pure_mdt']:CreateCourt()

Edit Court

This export will bring up an input popup, put in the id and it will then allow you to edit it

---@return boolean
local success = exports['pure_mdt']:EditCourts()

Open Courts

This is an event, used to open the court view for the general public

TriggerEvent('doj:openCourts')

Dispatch

Show Dispatch

This will show the built in dispatch, to trigger this head over to Server Exports

exports['pure_mdt']:ShowDispatch()

Hide Dispatch

This will hide the built in dispatch

exports['pure_mdt']:HideDispatch()

Is Dispatch Open

Returns a boolean if they are in the dispatch or not

---@return boolean
local open = exports['pure_mdt']:IsInDispatch()