Kartik Scripts

OX Inventory

For servers using ox_inventory, you need to define the MDT items in your ox_inventory/data/items.lua file.

Simply copy and paste the following code block into your items list:

['mdt'] = {
    label = 'Mobile Data Terminal',
    weight = 250,
    stack = true,
    consume = 0,
    close = true,
    description = '',
    client = {
        export = 'kartik-mdt.openMDT'
    }
},

['dispatch'] = {
    label = 'Dispatch',
    weight = 250,
    stack = true,
    consume = 0,
    close = true,
    description = '',
    client = {
        export = 'kartik-mdt.openDispatch'
    }
},

['bodycam'] = {
    label = 'Bodycam',
    weight = 250,
    stack = true,
    consume = 0,
    close = true,
    description = '',
    server = {
        export = 'kartik-mdt.ToggleBodycam'
    },
    client = {
        remove = function(total)
            if total < 1 then
                TriggerServerEvent('kartik-mdt:server:removeBodycam')
            end
        end
    }
},

['tracker'] = {
    label = 'Tracker',
    description = 'The app that lets you track the whereabouts of your fellow mates.',
    weight = 100,
    consume = 0,
    client = {
        remove = function(total)
            if total < 1 then
                TriggerServerEvent('kartik-mdt:server:removePlayerBlip')
            end
        end
    },
    server = {
        export = 'kartik-mdt.useTracker'
    }
},

🖼️ Item Images

Make sure to place your item image files (e.g. mdt.png, dispatch.png, bodycam.png, and tracker.png) inside your ox_inventory/web/images/ directory so they are correctly visible to players in their inventory UI.

On this page