# Instal

## INSTALLATION

### Step 1

Dowlond file on keymaster. Open file and unzip.&#x20;

### Step 2

Put file to your server (resource) and add script to your server config. \
ensure nad\_vangelico or folder where you have file

### Step 3

When you open the config file you'll see a lines of codes to configure it to your server.<br>

### Step 4

### Requirements

* OX Lib
* OX Inventory
* OX Target
* ESX Server

````
```lua
Config = {}

Config.RobTime = 5 -- How many minutes the thief has to rob the jewels before the robbery gets cancelled
Config.MinPolice = 5 -- Min amount of Cops online to trigger the robbery
Config.PoliceJobName = 'police'
Config.PoliceJobName = 'sheriff'
Config.PoliceJobName = 'sahp'
Config.RewardMoney = false -- Give money?
Config.Account = 'black_money'
Config.Money = 1000 -- Money per stand
Config.RewardItem = false -- Reward item?

Config.pedCoords = vector4(1514.6741, -2072.7607, 77.2501, 282.3073) -- Cords ped who start heist
Config.ped = "a_m_m_og_boss_01" -- Ped model' 

Config.Pchacklocation = vector3(1275.5891, -1710.2405, 54.0715)

Config.Items = {
	{item = 'rolex', amount = 2},
	{item = 'vannecklace', amount = 1},
	{item = 'diamond_ring', amount = 2}
}

-- Translate
Config.Translate = {
    targetTalk = 'Promluvit si s Bobem',
    targetHackPc = 'Hack pc',
    StartNotify = 'Jeď k Lestrovi domů a hackni počítač',
    StartRobbery = 'Začal jsi klenotnictví',
    Hackpc = 'Alarm off, vylez na střechu, jdi do zádu a deaktivuj ventilaci',
    blip = 'Klenotnictví',
    progressDeal = 'Domlouváš si prácičku'
}

function dispatch()
local data = exports['cd_dispatch']:GetPlayerInfo()
TriggerServerEvent('cd_dispatch:AddNotification', {
    job_table = {'police', 'sahp', 'sheriff', }, 
    coords = vector3(-633.3367, -239.0540, 38.0732),
    title = '10-68 Přepadení klenotnictví',
    message = 'Dochází k přepadení klenotnictví', 
    flash = 0,
    unique_id = data.unique_id,
    sound = 1,
    blip = {
        sprite = 431, 
        scale = 1.2, 
        colour = 3,
        flashes = false, 
        text = '10-68',
        time = 5,
        radius = 0,
    }
})
end

function notification(text)
    lib.notify({
        title = 'Bob',
        description = text,
        type = 'success'
    })
end

function blip()
    
blip = AddBlipForCoord(-624.963, -232.908, 38.057)
SetBlipSprite(blip, 439)
SetBlipDisplay(blip, 4)
SetBlipScale(blip, 0.7)
SetBlipColour(blip, 5)
SetBlipAsShortRange(blip, true)
BeginTextCommandSetBlipName("STRING")
AddTextComponentString(Config.Translate.blip)
EndTextCommandSetBlipName(blip)

end
```
````
