🧠Installation
Insert into #qb-core/shared/items.lua
-- vt-artheist
['paintinge'] = {['name'] = 'paintinge', ['label'] = 'Collectible painting', ['weight'] = 30, ['type'] = 'item', ['image'] = 'paintinge.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'Great collectors painting, dont lose it because it costs money.'},
['paintingi'] = {['name'] = 'paintingi', ['label'] = 'Collectible painting2', ['weight'] = 30, ['type'] = 'item', ['image'] = 'paintinge2.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'Great collectors painting, dont lose it because it costs money.'},
['paintingh'] = {['name'] = 'paintingh', ['label'] = 'Collectible painting3', ['weight'] = 30, ['type'] = 'item', ['image'] = 'paintinge3.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'Great collectors painting, dont lose it because it costs money.'},
['paintingj'] = {['name'] = 'paintingj', ['label'] = 'Collectible painting4', ['weight'] = 30, ['type'] = 'item', ['image'] = 'paintinge4.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'Great collectors painting, dont lose it because it costs money.'},
['paintingf'] = {['name'] = 'paintingf', ['label'] = 'Collectible painting5', ['weight'] = 30, ['type'] = 'item', ['image'] = 'paintinge5.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'Great collectors painting, dont lose it because it costs money.'},
['paintingg'] = {['name'] = 'paintingg', ['label'] = 'Collectible painting6', ['weight'] = 30, ['type'] = 'item', ['image'] = 'paintinge6.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'Great collectors painting, dont lose it because it costs money.'},
If you don't happen to have Thermite, of course, here it is.
['thermite'] = {['name'] = 'thermite', ['label'] = 'Thermite', ['weight'] = 1000, ['type'] = 'item', ['image'] = 'thermite.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Sometimes you\'d wish for everything to burn'},
Install qb-dispatch
1.Create a client event that will be triggered from whatever script you want
local function VTArtHeistRobbery()
local currentPos = GetEntityCoords(PlayerPedId())
local locationInfo = getStreetandZone(currentPos)
local gender = GetPedGender()
TriggerServerEvent("dispatch:server:notify",{
dispatchcodename = "artheistrobbery", -- has to match the codes in sv_dispatchcodes.lua so that it generates the right blip
dispatchCode = "10-88",
firstStreet = locationInfo,
gender = gender,
model = nil,
plate = nil,
priority = 2, -- priority
firstColor = nil,
automaticGunfire = false,
origin = {
x = currentPos.x,
y = currentPos.y,
z = currentPos.z
},
dispatchMessage = "ArtHeist Robbery", -- message
job = {"police"} -- jobs that will get the alerts
})
end exports('VTArtHeistRobbery', VTArtHeistRobbery)
Go to - qb-dispatch/client/cl_events.lua
Find the following line
RegisterNetEvent("qb-dispatch:client:officerdown", function()
Above it, put the code from the function we made above
2.Add Dispatch Code in sv_dispatchcodes.lua for the particular robbery to display the blip
["artheistrobbery"] = {displayCode = '10-88', description = "ArtHeist Robbery In Progress", radius = 0, recipientList = {'police'}, blipSprite = 500, blipColour = 2, blipScale = 1.5, blipLength = 2, sound = "robberysound"},
You are now back to vt-artheist again
Go to vt-artheist/client/dispach.luа
function policeAlert()
-- exports['qb-dispatch']:Artheist() -- Project-SLoth qb-dispatch
-- TriggerServerEvent('police:server:policeAlert', 'Artheist Robbery') -- Regular VTCore
--exports['ps-dispatch']:Artheist(camId)
-- These are just examples, you'll have to implement your own police alert system!
print('Test Police Alerts')
end
Replace with this
function policeAlert()
exports["qb-dispatch"]:VTArtHeistRobbery()
print('VT Dev TEAM Test Police Alerts') --After you find out that it works, if you want, you can comment on the print-a
end
Also add the house doorlock file in the Installing-resource/configs-doorlock
Add the file directly to your / qb-doorlock/configs
Last updated