> For the complete documentation index, see [llms.txt](https://vt-developmets.gitbook.io/vt-scripts/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://vt-developmets.gitbook.io/vt-scripts/our-scripts/free-scripts/qb-art-heist/installation.md).

# Installation

*<mark style="color:red;">**Insert into #qb-core/shared/items.lua**</mark>*

```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.'},
```

*<mark style="color:yellow;">If you don't happen to have Thermite, of course, here it is.</mark>*

```lua
['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'},
```

* ## *Steps to Create New Alert*
* *<mark style="color:red;">**Install qb-dispatch**</mark>*

> *<mark style="color:yellow;">**1.Create a client event that will be triggered from whatever script you want**</mark>*

```lua
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 - <mark style="color:red;">qb-dispatch/client/</mark><mark style="color:red;">**cl\_events.lua**</mark>*
* *Find the following line*

```lua
RegisterNetEvent("qb-dispatch:client:officerdown", function()
```

* *Above it, put the code from the function we made above*

> *<mark style="color:yellow;">**2.Add Dispatch Code in sv\_dispatchcodes.lua for the particular robbery to display the blip**</mark>*

```lua
	["artheistrobbery"] =  {displayCode = '10-88', description = "ArtHeist Robbery In Progress", radius = 0, recipientList = {'police'}, blipSprite = 500, blipColour = 2, blipScale = 1.5, blipLength = 2, sound = "robberysound"},
```

{% hint style="warning" %}
*You are now back to vt-artheist again*
{% endhint %}

> *<mark style="color:red;">**Go to vt-artheist/client/dispach.luа**</mark>*

```lua
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
```

> *<mark style="color:red;">**Replace with this**</mark>*

```lua
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 
```

<pre><code><a data-footnote-ref href="#user-content-fn-1">Add the images to your inventory from Installing-resource/items-image</a>
</code></pre>

<pre><code><strong>Also add the house doorlock file in the Installing-resource/configs-doorlock
</strong>Add the file directly to your / qb-doorlock/configs
</code></pre>

[^1]:
