Client Side

isOpen

Use following export to check if MDT is opened.

---@return boolean
local isOpen = exports['p_mdt']:isOpen()

OpenMDT

Use following export/event to Open MDT

exports['p_mdt']:OpenMDT()
-- or use event \/
TriggerEvent('p_mdt/openMDT')

You can use item to Open our MDT

chevron-rightox_inventoryhashtag

Paste this item in ox_inventory/data/items.lua

['police_mdt'] = {
		label = 'Police MDT',
		weight = 500,
		stack = false,
		consume = 0,
		client = {
			event = 'p_mdt/openMDT'
		}
},

Example of usage in Radial Menu's

chevron-rightqb-radialmenuhashtag

This code should be pasted in qb-radialmenu/config.lua in Police Section

{
     id = 'p_mdt/open',
     title = 'Police MDT',
     icon = 'tablet',
     type = 'client',
     event = 'p_mdt/openMDT',
     shouldClose = true
},

CreateAlert

circle-info

Example of Usage [You can paste that in your code and modify]


GetConfig

Use following export to get config


Last updated