๐ฐ FX-STORE ROBBERY โ
Advanced store robbery system for RedM with minigame, cooldown, job requirements, alerts, and fully synced robbery mechanics.
๐ฆ Installation โ
ensure fx-storerobberyโข Place script into your resources folder โข Add to server.cfg โข Uses NUI system and synced robbery states
๐งฑ Required Item (SQL) โ
INSERT INTO `items` (`item`, `label`, `limit`, `can_remove`, `type`, `usable`, `metadata`, `desc`)
VALUES ('lockpick', 'Lockpick', 10, 1, 'item_standard', 1, '{}', 'Shovel');โข Required item for robbery system โข Used for safe breaking and minigame
โ๏ธ Basic Settings โ
Config.Language = "en"โข Controls language system
๐ฎ Interaction System โ
Config.UseTarget = falseโข false โ prompt system โข true โ ox_target
Config.Prompts = {
["robbery"] = {
Label = "Cash Register"
}
}โข Hold-based robbery interaction โข Fully customizable keys and distance
Config.Keybinds = {
["takemoney"] = 0x760A9C6F
}โข Key used to collect money
๐ช Register System โ
Config.CreateRegisterProp = {
{ id = "blackwater", model = "p_register01x" }
}โข Creates robbery targets dynamically โข Each register is synced for all players โข Uses custom placed registers instead of default ones
Config.DeleteDefaultProps = {
"p_register01x"
}โข Removes existing map registers โข Prevents duplicate interaction points
๐ญ Animation System โ
Config.RobAnims = {
Player = {},
Entity = {},
lockpick = {},
success = {},
fail = {}
}โข Full robbery animation flow โข Includes lockpick, success, fail animations โข Supports weapon / unarmed variations
๐จ Alert System โ
Config.AlertBlips = {
blipname = "Store Robbery !",
blipsprite = -2018361632
}โข Sends robbery alerts to players โข Displays map blip โข Automatically removed after time
๐ฎ Minigame System โ
Config.MinigameFunction = function(callback)โข Uses external minigame resource โข Returns success or fail โข Optional system (can be disabled)
๐ฏ Robbery System โ
Config.RobberyStores = {
["Blackwater"] = {}
}โข Each store is fully configurable โข Supports unlimited store entries
๐ Store Settings โ
coord = vector3(...)
distance = 2.0
promptTitle = "Store Name"โข Defines robbery location โข Controls interaction distance โข UI display title
๐ฎ Job Requirement โ
ActiveJobs = {
["sheriff"] = 1
}โข Requires active players from specific jobs โข Prevents robbery if requirement not met
โฑ๏ธ Cooldown System โ
RobberyDelay = 60โข Cooldown between robberies (minutes) โข Prevents spam robberies
RobberyTimeout = 5โข Max robbery duration โข Cancels robbery if time exceeded
๐ฒ Minigame & Progress โ
MinigameActive = true
ProgressBar = 30โข Minigame toggle โข Progress duration (seconds)
๐งฐ Required Items โ
requiredItems = {
{ item = "lockpick", count = 1 }
}โข Required to start robbery โข Can remove item on success/fail
๐ Time Restriction โ
RobberyTimeSettings = {
allowed = false,
open = 0,
close = 6
}โข Restricts robbery to specific hours โข Supports night-only robberies
๐ Reward System โ
Rewards = {
Cash = {10, 100},
Items = {
{ item = "goldnugget", count = 1 }
}
}โข Random cash reward โข Optional item rewards โข Fully configurable
RewardChance = 100โข Chance to receive reward โข Can simulate empty safes
๐ Notification System โ
Notify({
text = "Message"
})โข Supports VORP / RSG โข Server + client notifications
๐ Server Config โ
SV_Config.Webhook = {
url = ""
}โข Discord webhook system โข Logs robbery events
โ ๏ธ Important Notes โ
โข Lockpick item must exist โข Store IDs must be unique โข Job names must match framework โข Cooldown must be configured โข Minigame resource must be installed if enabled
๐จ Common Issues โ
โข Cannot rob โ missing lockpick โข Robbery not starting โ job requirement not met โข No reward โ reward chance config โข Store locked โ cooldown active โข Minigame not working โ missing dependency
๐ Summary โ
FX-STORE ROBBERY provides:
โข Fully synced robbery system โข Minigame integration โข Job-based restrictions โข Cooldown & anti-spam system โข Reward system (cash + items) โข Alert & police system โข Multi-framework compatibility
ยฉ Fixitfy Development
