> For the complete documentation index, see [llms.txt](https://mscripts.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mscripts.gitbook.io/docs/premium/scripts/house-robbery/config.md).

# Config

```lua
Config = Config or {}

Config.WalkSlowly = true -- If true, the player when using microwave, tv, whiteboard or safe, will walk slower
Config.Skillbar = "ox_lib" -- "ps-ui" or "ox_lib"
Config.ItemRobbery = "lockpick" -- Item to start the robbery

-- Settings for police calls
Config.PoliceCalls = {
	chance = 60, -- Chance to call police, 60 = 60%
	amount = 0, -- Police amount needed online to start the heist
	policeJobs = { "police", "lspd", }, -- Your police job name
}

-- Cooldown settings
Config.Cooldown = {
	enable = true, -- Enable cooldown?
	timer = 10, -- Cooldown time in minutes
}

-- Stress settings
Config.Stress = {
	Enable = true, -- Enable stress?
	Hud = "qb", -- "qb" or "cd"
	Amount = {
		Min = 2, -- Min stress
		Max = 4, -- Max stress
	}
}

-- Noise settings
Config.Noise = {
	enable = true, -- Enable noise when people stealing the house?
	maxNoise = 0.30, -- If people make more then 1.0 noise he call's the police
}

-- Level System settings
Config.Levels = {
	[1] = { xpNeeded = 0, xpReward = 5 },
	[2] = { xpNeeded = 500, xpReward = 10 },
	[3] = { xpNeeded = 1000, xpReward = 15 },
}

-- Props settings
Config.PropChance = 10 -- 10% Get the drop like tv, microwave, painting and safe
Config.EnableProps = true -- If true you have drops like tv, microwave, painting and safe, if false only config_drops available
Config.Props = {
	TV = "prop_tv_03",
	Microwave = "prop_micro_01",
	Painting = "hei_prop_heist_pic_12",
	Safe = "p_v_43_safe_s",
}

-- Selling settings (Add or remove items as needed)
Config.Selling = {
	{ item = "television", label = "Television", min = 100, max = 250 },
	{ item = "microwave", label = "Microwave", min = 80, max = 150 },
	{ item = "painting", label = "Painting", min = 200, max = 400 },
	{ item = "safe", label = "Safe", min = 300, max = 600 },
}

-- Search spots settings
Config.SearchSpots = {
	-- House 01 -> Interior: 346.52 -1013.19 -99.20
	["Location01"] = { x = 342.23,  y = -1003.29, z = -99.0, procurado = false},
    ["Location02"] = { x = 338.14,  y = -997.69,  z = -99.2, procurado = false},
    ["Location03"] = { x = 350.91 , y = -999.26 , z = -99.2, procurado = false},
    ["Location04"] = { x = 349.19,  y = -994.83,  z = -99.2, procurado = false},
    ["Location05"] = { x = 345.3,   y = -995.76,  z = -99.2, procurado = false},
    ["Location06"] = { x = 346.14,  y = -1001.55, z = -99.2, procurado = false},
    ["Location07"] = { x = 347.23,  y = -994.09,  z = -99.2, procurado = false},
    ["Location08"] = { x = 339.23,  y = -1003.35, z = -99.2, procurado = false},
    -- House 02 -> Interior: -785.22 323.66 212.0
    ["Location09"] = { x = -769.63, y = 339.51,   z = 211.40, procurado = false},
    ["Location10"] = { x = -780.35, y = 341.31,   z = 211.20, procurado = false},
    ["Location11"] = { x = -786.37, y = 337.87,   z = 211.20, procurado = false},
    ["Location12"] = { x = -790.81, y = 330.53,   z = 210.80, procurado = false},
    ["Location13"] = { x = -789.80, y = 333.91,   z = 210.83, procurado = false},
    ["Location14"] = { x = -792.34, y = 326.52,   z = 210.80, procurado = false},
    ["Location15"] = { x = -794.36, y = 326.52,   z = 210.80, procurado = false},
    ["Location16"] = { x = -798.27, y = 330.14,   z = 210.80, procurado = false},
    -- House 03 -> Interior: -786.9756 315.723 187.9134
    ["Location17"] = { x = -788.96, y = 320.82,   z = 187.31, procurado = false},
    ["Location18"] = { x = -781.89, y = 330.02,   z = 187.31, procurado = false},
    ["Location19"] = { x = -781.43, y = 337.98,   z = 187.11, procurado = false},
    ["Location20"] = { x = -797.67, y = 333.40,   z = 190.72, procurado = false},
    ["Location21"] = { x = -796.37, y = 328.50,   z = 190.72, procurado = false},
    ["Location22"] = { x = -799.15, y = 328.25,   z = 190.72, procurado = false},
    ["Location23"] = { x = -805.57, y = 332.41,   z = 190.72, procurado = false},
    ["Location24"] = { x = -800.08, y = 338.42,   z = 190.72, procurado = false},

	-- If you want to add one more search sport do it like this:
	-- ["Location25"] = { x = -800.08, y = 338.42,   z = 190.72, procurado = false},
}

-- NPCs settings
Config.PedList = { 
	[1] = { model = `g_m_y_mexgang_01`, coords = vector4(1143.78, -299.5, 67.81, 123.23), gender = "male", scenario = "WORLD_HUMAN_CLIPBOARD" }, -- Start Mission
	[2] = { model = `s_m_m_trucker_01`, coords = vector4(-1163.37, -2023.8, 12.16, 124.35), gender = "male", scenario = "WORLD_HUMAN_SMOKING" }, -- Selling items
}

-- Blips settings
Config.Blips = {
	StartMission = {
		Enable = false,
		Sprite = 40, -- https://docs.fivem.net/docs/game-references/blips/
		Display = 4,
		Scale = 0.8,
		Colour = 39,
		Name = "Start Robbery",
		Location = vector3(1143.78, -299.5, 67.81),
	},
	Houses = {
		Enable = false,
		Sprite = 40, -- https://docs.fivem.net/docs/game-references/blips/
		Display = 4,
		Scale = 0.8,
		Colour = 1,
		Name = "House Robbery",
	},
	HouseRobbery = {
		Sprite = 40, -- https://docs.fivem.net/docs/game-references/blips/
		Scale = 0.8,
		Colour = 39,
		RouteColour = 1,
		Name = "House Robbery",
	},
	Selling = {
		Enable = false,
		Sprite = 207, -- https://docs.fivem.net/docs/game-references/blips/
		Display = 4,
		Scale = 0.8,
		Colour = 39,
		Name = "Selling Products",
		Location = vector3(-1164.82, -2022.58, 12.16),
	},
}

-- Drops settings
Config.Drops = {
    [1] = { -- Level 1
        { item = "television", chance = 15, min = 1, max = 2 },
        { item = "microwave", chance = 15, min = 1, max = 2 },
        { item = "painting", chance = 15, min = 1, max = 2 },
        { item = "safe", chance = 100, min = 1, max = 1 }, -- 100% SEMPRE
        { item = "goldchain", chance = 10, min = 1, max = 2 },
    },
    [2] = { -- Level 2
        { item = "television", chance = 18, min = 1, max = 3 },
        { item = "microwave", chance = 18, min = 1, max = 3 },
        { item = "painting", chance = 18, min = 1, max = 3 },
        { item = "safe", chance = 100, min = 1, max = 2 }, -- 100% SEMPRE
        { item = "goldchain", chance = 12, min = 1, max = 3 },
        { item = "diamond_ring", chance = 10, min = 1, max = 2 },
    },
    [3] = { -- Level 3
        { item = "television", chance = 20, min = 1, max = 4 },
        { item = "microwave", chance = 20, min = 1, max = 4 },
        { item = "painting", chance = 20, min = 1, max = 4 },
        { item = "safe", chance = 100, min = 1, max = 3 }, -- 100% SEMPRE
        { item = "goldchain", chance = 15, min = 1, max = 4 },
        { item = "diamond_ring", chance = 10, min = 1, max = 3 },
        { item = "goldbar", chance = 5, min = 1, max = 2 },
    },
}

-- Houses Configuration
-- Each house has a door position (where the robbery starts) and an interior location (where player teleports to)
Config.Houses = {
    -------------------------
    -- INTERIOR TYPE 1
    -- Interior coords: 346.52, -1013.19, -99.20
    -------------------------
	[1] = {
        position = vector4(1229.1, -725.47, 60.80, 89.98),
        interior = vector4(346.52, -1013.19, -99.2, 357.81),
    },
    [2] = {
        position = vector4(1222.74, -697.01, 60.81, 89.98),
        interior = vector4(346.52, -1013.19, -99.2, 357.81),
    },
    [3] = {
        position = vector4(959.98, -669.93, 58.45, 118.90),
        interior = vector4(346.52, -1013.19, -99.2, 357.81),
    },
    [4] = {
        position = vector4(1348.41, -546.73, 73.89, 337.90),
        interior = vector4(346.52, -1013.19, -99.2, 357.81),
    },
    [5] = {
        position = vector4(1367.23, -606.56, 74.71, 181.81),
        interior = vector4(346.52, -1013.19, -99.2, 357.81),
    },
    [6] = {
        position = vector4(331.57, 465.26, 151.26, 203.55),
        interior = vector4(346.52, -1013.19, -99.2, 357.81),
    },
    [7] = {
        position = vector4(80.02, 486.27, 148.20, 28.27),
        interior = vector4(346.52, -1013.19, -99.2, 357.81),
    },
    [8] = {
        position = vector4(-7.96, 467.80, 145.84, 164.93),
        interior = vector4(346.52, -1013.19, -99.2, 357.81),
    },
    [9] = {
        position = vector4(-230.36, 487.91, 128.77, 191.87),
        interior = vector4(346.52, -1013.19, -99.2, 357.81),
    },

    -------------------------
    -- INTERIOR TYPE 2
    -- Interior coords: -785.22, 323.66, 212.0
    -------------------------
    [10] = {
        position = vector4(-348.84, 515.04, 120.65, 319.56),
        interior = vector4(-785.22, 323.66, 212.0, 269.15),
    },
    [11] = {
        position = vector4(-355.64, 458.29, 116.65, 138.20),
        interior = vector4(-785.22, 323.66, 212.0, 269.15),
    },
    [12] = {
        position = vector4(-401.24, 427.51, 112.41, 69.65),
        interior = vector4(-785.22, 323.66, 212.0, 269.15),
    },
    [13] = {
        position = vector4(-595.63, 393.09, 101.88, 185.42),
        interior = vector4(-785.22, 323.66, 212.0, 269.15),
    },
    [14] = {
        position = vector4(-667.10, 471.49, 114.14, 197.03),
        interior = vector4(-785.22, 323.66, 212.0, 269.15),
    },
    [15] = {
        position = vector4(-717.84, 448.65, 106.91, 203.25),
        interior = vector4(-785.22, 323.66, 212.0, 269.15),
    },
    [16] = {
        position = vector4(-784.72, 459.70, 100.39, 33.33),
        interior = vector4(-785.22, 323.66, 212.0, 269.15),
    },
    [17] = {
        position = vector4(-971.49, 455.88, 80.00, 112.48),
        interior = vector4(-785.22, 323.66, 212.0, 269.15),
    },
    [18] = {
        position = vector4(-1094.97, 427.35, 75.88, 84.67),
        interior = vector4(-785.22, 323.66, 212.0, 269.15),
    },
    [19] = {
        position = vector4(-1193.02, 564.09, 100.34, 6.35),
        interior = vector4(-785.22, 323.66, 212.0, 269.15),
    },
    [20] = {
        position = vector4(-516.61, 433.41, 97.81, 313.59),
        interior = vector4(-785.22, 323.66, 212.0, 269.15),
    },
    [21] = {
        position = vector4(-580.40, 491.60, 108.90, 189.19),
        interior = vector4(-785.22, 323.66, 212.0, 269.15),
    },

    -------------------------
    -- INTERIOR TYPE 3
    -- Interior coords: -786.9756, 315.723, 187.9134
    -------------------------
    [22] = {
        position = vector4(-1899.15, 132.45, 81.98, 126.21),
        interior = vector4(-786.9756, 315.723, 187.9134, 274.34),
    },
    [23] = {
        position = vector4(-1922.34, 298.39, 89.29, 280.98),
        interior = vector4(-786.9756, 315.723, 187.9134, 274.34),
    },
    [24] = {
        position = vector4(-2011.11, 444.94, 103.02, 102.71),
        interior = vector4(-786.9756, 315.723, 187.9134, 274.34),
    },
    [25] = {
        position = vector4(-1996.30, 591.29, 118.10, 81.12),
        interior = vector4(-786.9756, 315.723, 187.9134, 274.34),
    },

    -------------------------
    -- ADD MORE HOUSES HERE
    -- Example:
    -- [26] = {
    --     position = vector4(x, y, z, heading),
    --     interior = vector4(x, y, z, heading),
    -- },
    -------------------------
}
```
