Skip to content

๐Ÿ’ฐ FX-STORE ROBBERY โ€‹

Advanced store robbery system for RedM with minigame, cooldown, job requirements, alerts, and fully synced robbery mechanics.


๐Ÿ“ฆ Installation โ€‹

bash
ensure fx-storerobbery

โ€ข Place script into your resources folder โ€ข Add to server.cfg โ€ข Uses NUI system and synced robbery states


๐Ÿงฑ Required Item (SQL) โ€‹

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 โ€‹

lua
Config.Language = "en"

โ€ข Controls language system


๐ŸŽฎ Interaction System โ€‹

lua
Config.UseTarget = false

โ€ข false โ†’ prompt system โ€ข true โ†’ ox_target


lua
Config.Prompts = {
  ["robbery"] = {
    Label = "Cash Register"
  }
}

โ€ข Hold-based robbery interaction โ€ข Fully customizable keys and distance


lua
Config.Keybinds = {
  ["takemoney"] = 0x760A9C6F
}

โ€ข Key used to collect money


๐Ÿช Register System โ€‹

lua
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


lua
Config.DeleteDefaultProps = {
  "p_register01x"
}

โ€ข Removes existing map registers โ€ข Prevents duplicate interaction points


๐ŸŽญ Animation System โ€‹

lua
Config.RobAnims = {
  Player = {},
  Entity = {},
  lockpick = {},
  success = {},
  fail = {}
}

โ€ข Full robbery animation flow โ€ข Includes lockpick, success, fail animations โ€ข Supports weapon / unarmed variations


๐Ÿšจ Alert System โ€‹

lua
Config.AlertBlips = {
  blipname = "Store Robbery !",
  blipsprite = -2018361632
}

โ€ข Sends robbery alerts to players โ€ข Displays map blip โ€ข Automatically removed after time


๐ŸŽฎ Minigame System โ€‹

lua
Config.MinigameFunction = function(callback)

โ€ข Uses external minigame resource โ€ข Returns success or fail โ€ข Optional system (can be disabled)


๐ŸŽฏ Robbery System โ€‹

lua
Config.RobberyStores = {
  ["Blackwater"] = {}
}

โ€ข Each store is fully configurable โ€ข Supports unlimited store entries


๐Ÿ“ Store Settings โ€‹

lua
coord = vector3(...)
distance = 2.0
promptTitle = "Store Name"

โ€ข Defines robbery location โ€ข Controls interaction distance โ€ข UI display title


๐Ÿ‘ฎ Job Requirement โ€‹

lua
ActiveJobs = {
  ["sheriff"] = 1
}

โ€ข Requires active players from specific jobs โ€ข Prevents robbery if requirement not met


โฑ๏ธ Cooldown System โ€‹

lua
RobberyDelay = 60

โ€ข Cooldown between robberies (minutes) โ€ข Prevents spam robberies


lua
RobberyTimeout = 5

โ€ข Max robbery duration โ€ข Cancels robbery if time exceeded


๐ŸŽฒ Minigame & Progress โ€‹

lua
MinigameActive = true
ProgressBar = 30

โ€ข Minigame toggle โ€ข Progress duration (seconds)


๐Ÿงฐ Required Items โ€‹

lua
requiredItems = {
  { item = "lockpick", count = 1 }
}

โ€ข Required to start robbery โ€ข Can remove item on success/fail


๐Ÿ•’ Time Restriction โ€‹

lua
RobberyTimeSettings = {
  allowed = false,
  open = 0,
  close = 6
}

โ€ข Restricts robbery to specific hours โ€ข Supports night-only robberies


๐ŸŽ Reward System โ€‹

lua
Rewards = {
  Cash = {10, 100},
  Items = {
    { item = "goldnugget", count = 1 }
  }
}

โ€ข Random cash reward โ€ข Optional item rewards โ€ข Fully configurable


lua
RewardChance = 100

โ€ข Chance to receive reward โ€ข Can simulate empty safes


๐Ÿ”” Notification System โ€‹

lua
Notify({
  text = "Message"
})

โ€ข Supports VORP / RSG โ€ข Server + client notifications


๐ŸŒ Server Config โ€‹

lua
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

โšก Premium RedM scripts crafted with performance & quality in mind.