π§ 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
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
You are now back to vt-artheist again
Go to vt-artheist/client/dispach.luΠ°
Replace with this
Last updated