QB-HouseRobbery
Features
- Tiered loot system for houses
- Support for ps-dispatch or normal qb police alerts
- Support for ps-ui, skillbar and Boii_ui, t3_lockpick minigames
- Easily change minigame settings and much more via config.lua
- Extra searching locations added to interiors
Lock Picking Doors
Choose between
- qb-lockpick
- ps-ui skillcircle
- Boii_UI Keydrop
- T3_LockPick
Searching For Items
Choose between
- qb-skillbar
- ps-ui skillcircle
- Boii_UI keydrop
Dependencies
If you are not using ps-ui, boii_ui or T3_Lockpick for the lock picking or searching then you will need the default dependencies listed below
qb-lockpick: GitHub - qbcore-framework/qb-lockpick: Lockpick Mini-Game For QB-Core
qb-skillbar: GitHub - qbcore-framework/qb-skillbar: Skill Bar For QB-Core
Supported Scripts
If you don’t want to use the default qb-lockpick or qb-skillbar for lock picking or searching you can download either of the following and use those instead
-
Minigames:
ps-ui: GitHub - Project-Sloth/ps-ui: Project Sloth UI
boii_ui: GitHub - boiidevelopment/boii_ui: FiveM UI Element Resource - Standalone
t3_lockpick: GitHub - T3development/t3_lockpick -
Police Alerts:
ps-dispatch: GitHub - Project-Sloth/ps-dispatch: QBCore Dispatch
Config Preview:
Config.MinZOffset = 45
Config.MinimumHouseRobberyPolice = 0 -- minimum amount of police required for house robberies
Config.PoliceNotifyType = 'qb' --support for qb police notification and ps-dispatch. change to 'ps' for ps-dispatch
Config.MinimumTime = 5 -- past this time players are able to start house robberies
Config.MaximumTime = 22 -- past this time players are unable to start house robberies
Config.MiniGameSettings = {
LockPicking = {
Type = 'lockpick', --type of minigame when lockpicking doors. [default is lockpick]
--use 'lockpick' for qb-lockpick [doesnt have any settings below as its an inbuilt function of qb-lockpick]
--use 'ps-ui' for ps-ui skillcircle. adjust settings below accordingly for correct minigame type
--use 'keydrop' for boii_ui keydrop. adjust settings below accordingly for correct minigame type
--use 't3' for t3_lockpick
SkillCircle = {
Circles = 5, -- amount of circles required to complete minigame
Time = 10, -- amount of time in MS given to complete minigame
},
KeyDrop = {
ScoreLimit = 5, --the amount of correct keypresses for success
MissLimit = 2, --the amount of incorrect keypresses for failure
FallDelay = 3000, --amount of time taken for letters to fall in ms
NewLetterDelay = 2000, --amount of time take for a new letter to begin to fall
},
T3Lockpick = {
--DONT FORGET TO USE 'D' TO TEST THE PICK STRENGTH.
Difficulty = 2, -- difficulty level of the lock pick
Pins = 5, -- amount of pins needed to pass lock
},
},
Searching = {
Type = 'skillbar', --type of minigame when lockpicking doors. [default is skillbar]
--use 'skillbar' for qb-skillbar. adjust settings below accordingly for correct minigame type
--use 'ps-ui' for ps-ui skillcircle. adjust settings below accordingly for correct minigame type
--use 'keydrop' for boii_ui keydrop. adjust settings below accordingly for correct minigame type
SkillBar = { --if MiniGameType = skillbar then edit settings below for searhing locations for items
Start = {
SkillBarDuration = math.random(7500, 15000),
SkillBarPosition = math.random(10, 30),
SkillBarWidth = math.random(10, 20),
},
Repeat = {
SkillBarDuration = math.random(700, 1250),
SkillBarPosition = math.random(10, 40),
SkillBarWidth = math.random(10, 13),
},
},
SkillCircle = { --if MiniGameType = skillcircle then edit settings below for searhing locations for items
Circles = 5, -- amount of circles required to complete minigame
Time = 10, -- amount of time in MS given to complete minigame
},
KeyDrop = { --if MiniGameType = keydrop then edit settings below for searhing locations for items
ScoreLimit = 5, --the amount of correct keypresses for success
MissLimit = 2, --the amount of incorrect keypresses for failure
FallDelay = 3000, --amount of time taken for letters to fall in ms
NewLetterDelay = 2000, --amount of time take for a new letter to begin to fall
},
},
}
Config.Rewards = { -- rewards pool for tiers, adjust to your server needs
Tiers = {
[1] = {
["cabin"] = {"diamond_ring", "goldchain", "weed_skunk", "bandage", "beer", "fitbit"},
["kitchen"] = {"10kgoldchain", "rolex", "goldchain", "goldbar", "diamond_ring", "rifle_ammo"},
["chest"] = {"rolex", "diamond_ring", "goldchain", "weed_skunk", "lighter", "phone"},
["livingroom"] = {"weed_ak47", "rolex", "diamond_ring", "goldchain", "tablet", "pistol_ammo", "radio"},
},
[2] = {
["cabin"] = {"diamond_ring", "goldchain", "weed_skunk", "bandage", "beer", "fitbit"},
["kitchen"] = {"10kgoldchain", "rolex", "goldchain", "goldbar", "diamond_ring", "rifle_ammo"},
["chest"] = {"rolex", "diamond_ring", "goldchain", "weed_skunk", "lighter", "phone"},
["livingroom"] = {"weed_ak47", "rolex", "diamond_ring", "goldchain", "tablet", "pistol_ammo", "radio"},
},
[3] = {
["cabin"] = {"diamond_ring", "goldchain", "weed_skunk", "bandage", "beer", "fitbit"},
["kitchen"] = {"10kgoldchain", "rolex", "goldchain", "goldbar", "diamond_ring", "rifle_ammo"},
["chest"] = {"rolex", "diamond_ring", "goldchain", "weed_skunk", "lighter", "phone"},
["livingroom"] = {"weed_ak47", "rolex", "diamond_ring", "goldchain", "tablet", "pistol_ammo", "radio"},
},
},
}
Download
| Code is accessible | Yes |
| Subscription-based | No |
| Lines (approximately) | 1000+ |
| Requirements | qb-lockpick, qb-skillbar OR ps-ui, ps-dispatch and boii_ui |
| Support | Yes |
