Loaf - Store Robbery
Advanced store robbery script complete with safe cracking, police alerts & more!
Purchase: Tebex - €24.99 + VAT
Supported frameworks
By default, the script supports ESX and QBCore , but it also contains template files you can use to integrate your framework.
Features
Extensive config
Locale files for translations
Synchronized between players
Server-sided entity spawning
Target interaction (ox_target , qb-target , qtarget )
Optionally, standard “E” interaction can be used
Great performance
Random rewards
Ability to rob the till yourself
Configurable time
Can be canceled
20 pre-configured stores
Some stores have safes that you can lockpick
Random loot inside the safe
Visible loot, grab it from the safe
Support for popular dispatch scripts (can be adapted to work with other scripts)
qs-dispatch
ps-dispatch
cd_dispatch
lb-tablet
Built-in police alert if you don’t have a supported dispatch script
Exports & events
Links
Code is accessible
No
Subscription-based
No
Lines (approximately)
3000
Requirements
ox_lib
Support
Yes
6 Likes
sorry but isnt this a thing that been releases years ago ?
Nice Release. Love to see it.
1 Like
I had a store robbery script before (4 years old), but this is V2, rewritten from the ground up. It brings new features, improved performance, and bug fixes!
3 Likes
Modo
January 4, 2025, 1:06pm
5
Looks great.
Can you purchase items from the stores?
If not then I’d have to have 1 NPC to buy from and 1 to rob and that seems a bit weird
No, this does not come with a store script. I have added exports & events that you can use to get the clerk ped and integrate it with your shop script.
I can look into making a shop script that uses the peds from the store robbery, but it would probably be a separate script. I’ll look into creating a fork of qb-shops that uses the peds from the store robbery.
Modo
January 4, 2025, 1:44pm
7
That looks perfect actually.
Could use GetStoreClerkEntity to attach the qb-shops data and then GetCooldown to prevent them being used within a certain time from the robbery.
Rare for paid resources to have so many exports and possibilities. Nice work.
1 Like
I’ve created a fork of qb-shops that uses the peds from loaf_storerobbery, it can be found here: https://github.com/loaf-scripts/qb-shops .
The script has been updated to allow for even more customization!
Store Robbery 2.1.0
Armed Clerk
Added a new config option that makes the clerk armed
Weapons & the chance of being armed can be configured and changed for each store
Example
ClerkArmed = {
Duration = 60,
Chance = 100,
Weapons = {
`WEAPON_COMBATPISTOL`,
`WEAPON_COMBATPISTOL`,
`WEAPON_PUMPSHOTGUN`
}
}
Custom Clerks
Added the ability to have different clerk models for each store
You can change the voice lines for each store
The clerk components (clothes) can be changed in loaf_storerobbery/server/custom/functions.lua
Custom model & voice example
ClerkModel = `S_M_Y_Cop_01`,
Voice = {
Name = "S_M_Y_Cop_01_WHITE_FULL_01",
Lines = {
SHOP_GREET = "PROVOKE_TRESPASS",
}
},
Misc
You can now change the safe loot for each store separately
Added logs
Added a new config option that disables the clerk voice lines if a store has recently been robbed, Config.DisableSpeechRecentlyRobbed
Fixed a bug where the police alerts did not show the store name
Separate safe loot example
Safe = {
Coords = vector4(-3248.165283, 1002.181213, 12.580711, 260.0),
Style = "default", -- default, black or gold
Loot = {
{
Chance = 100,
Rewards = "Bag",
Model = `xm_prop_x17_bag_01b`,
Offset = vector4(0.0, 0.15, 0.1, 15.0),
Rotation = vector2(0.0, 0.0),
Label = "SAFE_LOOT.BAG",
},
{
Chance = 100,
Rewards = "Card",
Model = `ch_prop_swipe_card_01b`,
Offset = vector4(0.2, -0.12, 0.12, -25.0),
Rotation = vector2(90.0, 0.0),
Label = "SAFE_LOOT.CARD",
},
}
},
Modo
January 25, 2025, 2:22pm
10
Hey, loving the script. Works really well. I have one tiny issue:
the shopkeeper killed me and I have the “intimidation” bar stuck on my screen now
I’m glad to hear that you like the script
I’ve pushed an update that fixes the issue with the intimidation bar. I’ve also improved the script for ESX 1.12.