Config
Config = {}
---------------
-- UTILITY
---------------
Config.InvLink = "qb-inventory/html/images/" -- Your inventory link to images
Config.TargetDistances = 2.0 -- Distance of all targets
Config.Utility = {
CoreName = "qb-core", -- Core Name
ItemBox = "inventory:client:ItemBox",
ChanceCallCops = 60, -- Chance to call cops | 60 = 60%
ItemStartRobbery = "advancedlockpick", -- Item to start enter in house
Skillbar = "ox_lib", -- "qb-lock" or "ps-ui" or "ox_lib"
Mask = false, -- If true, you will only be able to acess it if you have a mask
Cooldown = true, -- Enable cooldown?
CooldownTime = 10, -- 10 Minutes
KeyToCombination = 38, -- [E]
Target = "qb", -- "qb" or "ox"
TargetName = "qb-target", -- Name of your qb-target folder | If use target == "ox" ignore this
WalkSlowly = true, -- If true, the player when using microwave, tv, whiteboard or safe, will walk slower
PoliceJob = { "police", "lspd", }, -- Your police job name
Amount = 0, -- Police amount needed online to start the heist
Fingerprint = true, -- If true, there will be a chance to leave a fingerprint
ChanceFingerprint = 50, -- Random at 1~100 if < 80 then create fingerprint
TriggerFingerprint = "evidence:server:CreateFingerDrop", -- Trigger to create fingerprint
Inventory = "qb", -- "qb" / "ox" / "qs"
Money = "cash", -- If you need change the money item
}
---------------
-- STRESS
---------------
Config.Stress = {
Enable = true, -- Enable stress?
Hud = "qb", -- "qb" or "cd"
Amount = {
Min = 2, -- Min stress
Max = 4, -- Max stress
}
}
---------------
-- NOISE
---------------
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
---------------
Config.LevelSystem = {
Level_1 = {
XP_Need = 0, -- Don't touch
XP_Gained = 5, -- XP Gained after house robbery
},
Level_2 = {
XP_Need = 500, -- How much XP need to level 2
XP_Gained = 10, -- XP Gained after house robbery
},
Level_3 = {
XP_Need = 1000, -- How much XP need to level 3
XP_Gained = 15, -- XP Gained after house robbery
},
}
---------------
-- PROPS
---------------
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
---------------
Config.Selling = {
TV = {
Min = 2, -- Minimum selling price.
Max = 4, -- Maximum selling price.
},
Microwave = {
Min = 2, -- Minimum selling price.
Max = 4, -- Maximum selling price.
},
Painting = {
Min = 2, -- Minimum selling price.
Max = 4, -- Maximum selling price.
},
Safe = {
Min = 2, -- Minimum selling price.
Max = 4, -- Maximum selling price.
},
}
---------------
-- SEARCH SPOTS
---------------
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},
}
---------------
-- PEDS
---------------
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" },
[2] = { model = `s_m_m_trucker_01`, coords = vector4(-1163.37, -2023.8, 12.16, 124.35), gender = "male", scenario = "WORLD_HUMAN_SMOKING" },
}
---------------
-- WEBHOOKS
---------------
Config.Webhooks = true
Config.LogName = "houserobbery"
Config.LogColour = "lightgreen"
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),
},
}
DropAmount = {
min = 1,
max = 3,
}
Drops = {
ChanceRare_Level1 = 10, -- 10% Chance to get rare drop at level 1
ChanceRare_Level2 = 15, -- 15% Chance to get rare drop at level 2
ChanceRare_Level3 = 20, -- 20% Chance to get rare drop at level 3
Level_1 = {
Normal_Drops = {
[1] = "weapon_pistol",
},
Rare_Drops = {
[1] = "weapon_pistol",
}
},
Level_2 = {
Normal_Drops = {
[1] = "weed_skunk",
[2] = "goldchain",
[3] = "diamond_ring",
[4] = "weapon_golfclub",
[5] = "rolex",
[6] = "iphone",
[7] = "powerbank",
[8] = "joint",
[9] = "samsungphone",
},
Rare_Drops = {
[1] = "pistol_ammo",
[2] = "weapon_pistol",
[3] = "thermite",
[4] = "handcuffs",
[5] = "security_card_06",
[6] = "keya",
}
},
Level_3 = {
Normal_Drops = {
[1] = "weed_skunk",
[2] = "goldchain",
[3] = "diamond_ring",
[4] = "weapon_golfclub",
[5] = "rolex",
[6] = "iphone",
[7] = "powerbank",
[8] = "joint",
[9] = "samsungphone",
},
Rare_Drops = {
[1] = "pistol_ammo",
[2] = "weapon_pistol",
[3] = "thermite",
[4] = "handcuffs",
[5] = "security_card_06",
[6] = "keya",
}
},
}
function PoliceCall()
print("Trying exporting the dispatch")
--exports['ps-dispatch']:HouseRobbery()
-- If you use ps-dispatch uncomment line 7
end
-- Notifys
function Notify(msg, type, time)
QBCore.Functions.Notify(msg, type, time)
end
-- Help notification
function ShowHelpNotification(text)
SetTextComponentFormat("STRING")
AddTextComponentString(text)
DisplayHelpTextFromStringLabel(0, 0, 1, -1)
end
-- Email when you start the heist
function Email()
TriggerServerEvent("qb-phone:server:sendNewMail", {
sender = Language.Sender,
subject = Language.Subject,
message = Language.Message,
})
end
-- Fade animation when entering and leaving the house
function AnimacaoFade()
DoScreenFadeOut(1000)
Wait(1000)
DoScreenFadeIn(1000)
end
-- Function to enter in house ( if you need to change the mini-game )
-- If you don't know what to change, please open a discord ticket and I'll help
function TentarEntrar(Casinha)
QBCore.Functions.TriggerCallback('m-HouseRobbery:Server:HaveLockpick', function(cb)
if cb then
local random = math.random(0, 100)
if random <= Config.Utility.ChanceCallCops then
print("Exporting dispatch...")
PoliceCall()
end
if Config.Utility.Skillbar == "qb-lock" then
local success = exports['qb-lock']:StartLockPickCircle(5,20)
if success then
TriggerServerEvent('m-HouseRobbery:Server:RemoveItem', Config.Utility.ItemStartRobbery, 1)
TriggerEvent('inventory:client:ItemBox', QBCore.Shared.Items[Config.Utility.ItemStartRobbery], "remove", 1)
EntrarCasa(Casinha)
TriggerEvent('instance:create', 'house')
Wait(math.random(15000,30000))
else
Notify(Language.Failed)
end
elseif Config.Utility.Skillbar == "ps-ui" then
exports['ps-ui']:Circle(function(success)
if success then
TriggerServerEvent('m-HouseRobbery:Server:RemoveItem', Config.Utility.ItemStartRobbery, 1)
TriggerEvent('inventory:client:ItemBox', QBCore.Shared.Items[Config.Utility.ItemStartRobbery], "remove", 1)
EntrarCasa(Casinha)
TriggerEvent('instance:create', 'house')
Wait(math.random(15000,30000))
else
Notify(Language.Failed)
end
end, 2, 20) -- NumberOfCircles, MS
elseif Config.Utility.Skillbar == "ox_lib" then
local success = lib.skillCheck({'easy', 'easy', {areaSize = 60, speedMultiplier = 2}, 'easy'}, {'w', 'a', 's', 'd'})
if success then
TriggerServerEvent('m-HouseRobbery:Server:RemoveItem', "houselockpick", 1)
TriggerEvent('inventory:client:ItemBox', QBCore.Shared.Items[Config.Utility.ItemStartRobbery], "remove", 1)
EntrarCasa(Casinha)
TriggerEvent('instance:create', 'house')
Wait(math.random(15000,30000))
else
Notify(Language.Failed)
end
end
else
Notify(Language.NoItems)
end
end)
end
Houses = {
-- House 01 -> Interior: 346.52 -1013.19 -99.20
[1] = {
Position = { x = 1229.1, y = -725.47, z = 60.80, h = 89.98 },
DentroCasa = { x = 346.52 , y = -1013.19 , z = -99.2, h = 357.81 },
},
[2] = {
Position = { x = 1222.74, y = -697.01, z = 60.81, h = 89.98 },
DentroCasa = { x = 346.52 , y = -1013.19 , z = -99.2, h = 357.81 },
},
[3] = {
Position = { x = 959.98, y = -669.93, z = 58.45, h = 118.90 },
DentroCasa = { x = 346.52 , y = -1013.19 , z = -99.2, h = 357.81 },
},
[4] = {
Position = { x = 1348.41, y = -546.73, z = 73.89, h = 337.90 },
DentroCasa = { x = 346.52 , y = -1013.19 , z = -99.2, h = 357.81 },
},
[5] = {
Position = { x = 1367.23, y = -606.56, z = 74.71, h = 181.81 },
DentroCasa = { x = 346.52 , y = -1013.19 , z = -99.2, h = 357.81 },
},
[6] = {
Position = { x = 331.57, y = 465.26, z = 151.26, h = 203.55 },
DentroCasa = { x = 346.52 , y = -1013.19 , z = -99.2, h = 357.81 },
},
[7] = {
Position = { x = 80.02, y = 486.27, z = 148.20, h = 28.27 },
DentroCasa = { x = 346.52 , y = -1013.19 , z = -99.2, h = 357.81 },
},
[8] = {
Position = { x = -7.96, y = 467.80, z = 145.84, h = 164.93 },
DentroCasa = { x = 346.52 , y = -1013.19 , z = -99.2, h = 357.81 },
},
[9] = {
Position = { x = -230.36, y = 487.91, z = 128.77, h = 191.87 },
DentroCasa = { x = 346.52 , y = -1013.19 , z = -99.2, h = 357.81 },
},
-- House 02 -> Interior: -785.22 323.66 212.0
[10] = {
Position = { x = -348.84, y = 515.04, z = 120.65, h = 319.56 },
DentroCasa = { x = -785.22 , y = 323.66 , z = 212.0, h = 269.15 },
},
[11] = {
Position = { x = -355.64, y = 458.29, z = 116.65, h = 138.20 },
DentroCasa = { x = -785.22 , y = 323.66 , z = 212.0, h = 269.15 },
},
[12] = {
Position = { x = -401.24, y = 427.51, z = 112.41, h = 69.65 },
DentroCasa = { x = -785.22 , y = 323.66 , z = 212.0, h = 269.15 },
},
[13] = {
Position = { x = -595.63, y = 393.09, z = 101.88, h = 185.42 },
DentroCasa = { x = -785.22 , y = 323.66 , z = 212.0, h = 269.15 },
},
[14] = {
Position = { x = -667.10, y = 471.49, z = 114.14, h = 197.03 },
DentroCasa = { x = -785.22 , y = 323.66 , z = 212.0, h = 269.15 },
},
[15] = {
Position = { x = -717.84, y = 448.65, z = 106.91, h = 203.25 },
DentroCasa = { x = -785.22 , y = 323.66 , z = 212.0, h = 269.15 },
},
[16] = {
Position = { x = -784.72, y = 459.70, z = 100.39, h = 33.33 },
DentroCasa = { x = -785.22 , y = 323.66 , z = 212.0, h = 269.15 },
},
[17] = {
Position = { x = -971.49, y = 455.88, z = 80.00, h = 112.48 },
DentroCasa = { x = -785.22 , y = 323.66 , z = 212.0, h = 269.15 },
},
[18] = {
Position = { x = -1094.97, y = 427.35, z = 75.88, h = 84.67 },
DentroCasa = { x = -785.22 , y = 323.66 , z = 212.0, h = 269.15 },
},
[19] = {
Position = { x = -1193.02, y = 564.09, z = 100.34, h = 6.35 },
DentroCasa = { x = -785.22 , y = 323.66 , z = 212.0, h = 269.15 },
},
[20] = {
Position = { x = -516.61, y = 433.41, z = 97.81, h = 313.59 },
DentroCasa = { x = -785.22 , y = 323.66 , z = 212.0, h = 269.15 },
},
[21] = {
Position = { x = -580.40, y = 491.60, z = 108.90, h = 189.19 },
DentroCasa = { x = -785.22 , y = 323.66 , z = 212.0, h = 269.15 },
},
-- House 03 -> Interior: -786.9756 315.723 187.9134
[22] = {
Position = { x = -1899.15, y = 132.45, z = 81.98, h = 126.21 },
DentroCasa = { x = -786.9756 , y = 315.723 , z = 187.9134, h = 274.34 },
},
[23] = {
Position = { x = -1922.34, y = 298.39, z = 89.29, h = 280.98 },
DentroCasa = { x = -786.9756 , y = 315.723 , z = 187.9134, h = 274.34 },
},
[24] = {
Position = { x = -2011.11, y = 444.94, z = 103.02, h = 102.71 },
DentroCasa = { x = -786.9756 , y = 315.723 , z = 187.9134, h = 274.34 },
},
[25] = {
Position = { x = -1996.30, y = 591.29, z = 118.10, h = 81.12 },
DentroCasa = { x = -786.9756 , y = 315.723 , z = 187.9134, h = 274.34 },
},
}
Last updated