Config

Config = {}
Config.Locale = 'en'

Config.Marker = {
	r = 250, g = 0, b = 0, a = 100,  -- red color
	x = 1.0, y = 1.0, z = 1.5,       -- tiny, cylinder formed circle
	DrawDistance = 15.0, Type = 1    -- default circle type, low draw distance due to indoors area
}

Config.PoliceNumberRequired = 0
Config.TimerBeforeNewRob    = 3600 -- The cooldown timer on a store after robbery was completed / canceled, in seconds

Config.MaxDistance    = 20   -- max distance from the robbary, going any longer away from it will to cancel the robbary
Config.GiveBlackMoney = true -- give black money? If disabled it will give cash instead

Stores = {
	["south_merryweather"] = {
		position = { x = 569.34, y = -3126.35, z = 18.77 },
		reward = math.random(5000, 15000),
		nameOfStore = "Merryweather",
		secondsRemaining = 600, -- seconds
		lastRobbed = 0
	},
}

EDIT REWARDS IN SERVER.LUA OR CLIENT.LUA example: server.lua

Main HEIST  

                  local updatedXPlayer = ESX.GetPlayerFromId(_source)
                    if updatedXPlayer then
                        -- 💰 Systém odměn – zachováno
                        if chance >= 1 and chance <= 5 then
                            updatedXPlayer.addInventoryItem('konstrukce', 2)
                        elseif chance >= 6 and chance <= 10 then
                            updatedXPlayer.addInventoryItem('konstrukce', 1)
                        elseif chance <= 25 and chance >= 11 then
                            updatedXPlayer.addInventoryItem('spoust', 1)
                        elseif chance <= 50 and chance >= 26 then
                            updatedXPlayer.addInventoryItem('ammo-rifle-box', 2)
                        elseif chance <= 100 and chance >= 91 then
                            updatedXPlayer.addInventoryItem('vest_normal', 1)
                        elseif chance <= 90 and chance >= 51 then
                            updatedXPlayer.addInventoryItem('ammo-rifle2-box', 2)
                        end
                    end
Small minigames

local rewardsPool = {
    { type = "item", name = "ammo-9-box", count = 1 },
    { type = "item", name = "ammo-rifle-box", count = 1 },
    { type = "item", name = "ammo-rifle2-box", count = 1 },
    { type = "item", name = "ammo-shotgun-box", count = 1 },

}

Small heist location

    local hackLocations = {
        { x = 570.8749, y = -3123.8635, z = 18.7686, heading = 270.5509 },
        { x = 575.4131, y = -3121.7771, z = 18.7686, heading = 273.3074 },
        { x = 573.6755, y = -3127.2126, z = 18.7686, heading = 185.2832 },
        { x = 563.5117, y = -3126.7810, z = 18.7686, heading = 90.3172 }
        -- Přidej další lokace, pokud chceš
    }

this you can delete:

local hackLocations = {
    { coords = vec3(570.8749, -3123.8635, 18.7686), heading = 270.5509 },
    { coords = vec3(575.4131, -3121.7771, 18.7686), heading = 273.3074 },
    { coords = vec3(573.6755, -3127.2126, 18.7686), heading = 185.2832 },
    { coords = vec3(563.5117, -3126.7810, 18.7686), heading = 90.3172 },
    { coords = vec3(566.3529, -3121.4565, 18.7686), heading = 13.0333 },
    { coords = vec3(566.0596, -3124.8804, 18.7686), heading = 71.7146 },
    { coords = vec3(563.0832, -3124.0706, 18.7686), heading = 271.1726 }
}

Last updated