βοΈIntegration
Item creation
If you don't want to use the command, you can use a tablet item instead.
Add the following lines to to qb-core/shared/items.lua
['choptablet'] = { ['name'] = 'choptablet', ['label'] = 'Chop tablet', ['weight'] = 1000, ['type'] = 'item', ['image'] = 'choptablet.png', ['unique'] = true, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = "There is an app on that."},
weapon_hackingdevice = { name = 'weapon_hackingdevice', label = 'Hacking Device', weight = 1000, type = 'weapon', ammotype = nil, image = 'hackingdevice.png', unique = true, useable = false, description = 'A device to hack' },
weapon_digiscanner = { name = 'weapon_digiscanner', label = 'Scanning Device', weight = 1000, type = 'weapon', ammotype = nil, image = 'digiscanner.png', unique = true, useable = false, description = 'You scan with this' },
Add the image file to qb-inventory/html/images/choptablet.png

Add the image file to qb-inventory/html/images/hackingdevice.png

Add the image file to qb-inventory/html/images/digiscanner.png

Add the following code to the end of public\api\sv_inventory.lua
Add this section to ox_inventory/data/items.lua
Add this section to ox_inventory/data/weapons.lua
Add the image file to ox_inventory/web/images/choptablet.png

Add the image file to ox_inventory/web/images/hackingdevice.png

Add the image file to ox_inventory/web/images/digiscanner.png

Create the item in your inventory system. Trigger the following client-side event:
Event kub_chop:client:openTablet on tablet item use.
Export kub_chop.choptabletopen
After you have successfully added the item you can disable the command by setting commandsEnabled to false in public\config\client\cl_config.lua
Police dispatch calls
If you wish police to receive dispatch calls / notifications when contracts with gate hacking are being done.
In public\api\cl_framework.lua, change the alertPolice function to this
In public\api\cl_framework.lua, change the alertPolice function to this
In public\api\cl_framework.lua, change the alertPolice function. The code you add should send a dispatch call to your online police members.
Last updated