Skip to content

๐Ÿ“ฆ FX-STASH โ€‹

Advanced stash system for RedM supporting personal and job-based storage with upgrade system, money storage, item limits, and full framework compatibility.


๐Ÿ“ฆ Installation โ€‹

bash
ensure fx-stash

โ€ข Place the script inside your resources folder โ€ข Add ensure fx-stash to your server.cfg โ€ข Restart your server โ€ข Requires fx-input system


๐Ÿ—„๏ธ SQL Setup โ€‹

sql
CREATE TABLE IF NOT EXISTS `fx_stash` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(50) NOT NULL,
  `identifier` varchar(50) DEFAULT NULL,
  `charidentifier` varchar(50) DEFAULT NULL,
  `slot` int(11) NOT NULL,
  `money` float NOT NULL DEFAULT 0,
  `items` longtext DEFAULT '[]'
)

โ€ข Main stash storage table โ€ข Stores items, money, and ownership โ€ข Supports personal and job stashes


sql
ALTER TABLE `fx_stash`
ADD COLUMN `items` longtext DEFAULT '[]'

โ€ข Required for older versions โ€ข Adds item storage support


โš™๏ธ Basic Settings โ€‹

lua
Config.Language = "en"

โ€ข Controls language system


๐ŸŒ Locale System โ€‹

lua
Config.Locale = {
  ["en"] = {}
}

โ€ข Multi-language support โ€ข Fully customizable UI texts


๐Ÿช Stash System โ€‹

lua
Config.Storage = {
  {
    name = "Valentine",
    store = vector3(...)
  }
}

โ€ข Defines stash locations โ€ข name โ†’ unique stash ID โ€ข store โ†’ interaction position


lua
job = false

โ€ข false โ†’ personal stash โ€ข table โ†’ job restricted stash


lua
job = {
  ["valgunsmith"] = 0
}

โ€ข Job-based stash system โ€ข Only specific jobs can access


๐Ÿ‘ค NPC & Object System โ€‹

lua
ped = 'cs_thomasdown'
pedcoord = vector4(...)

โ€ข Optional NPC for stash interaction โ€ข Can be disabled


lua
object = "p_ammoboxlancaster02x"

โ€ข Object-based stash interaction โ€ข Alternative to NPC


๐Ÿ—บ๏ธ Blip System โ€‹

lua
Blip = true
BlipSprite = -426139257

โ€ข Shows stash on map โ€ข Fully customizable


๐Ÿ“ฆ Slot & Upgrade System โ€‹

lua
minslot = 300
maxslot = 350
upgradable = true
upgradeprice = 10

โ€ข Initial stash size โ€ข Max upgrade limit โ€ข Cost per slot upgrade


๐Ÿ’ฐ Money Storage System โ€‹

lua
MoneyDeposit = true

โ€ข Allows storing money in stash โ€ข Supports deposit & withdraw


โš–๏ธ Item Limit System โ€‹

lua
limit = 500

โ€ข Total stash capacity โ€ข Prevents overflow


lua
Config.StashItemLimit = false

โ€ข Optional per-item limits โ€ข Can restrict specific items


๐Ÿ”’ Whitelist / Blacklist System โ€‹

lua
UseBlackList = false
whitelistItems = false
whitelistWeapons = false

โ€ข Control allowed items โ€ข Supports whitelist and blacklist logic


lua
limitedItems = {}
limitedWeapons = {}

โ€ข Define allowed items/weapons โ€ข Works with whitelist system


๐Ÿ”ซ Weapon System โ€‹

lua
acceptWeapons = true

โ€ข Allows storing weapons โ€ข Supports metadata


๐Ÿง  Stack & Limit Control โ€‹

lua
ignoreItemStackLimit = true

โ€ข Allows stacking beyond default limits โ€ข Useful for bulk storage


๐Ÿ‘ฎ Admin Commands โ€‹

lua
Config.AdminCommands = {
  {
    command = "removestash"
  }
}

โ€ข Admin-only stash removal โ€ข Supports personal & job stash


lua
removestashjob

โ€ข Removes job stash โ€ข Requires admin permission


๐Ÿ”„ External Usage โ€‹

lua
TriggerServerEvent("fx-stash:openStash", data)

โ€ข Open stash via script โ€ข Fully dynamic system


lua
data = {
  name = "stash_name",
  minslot = 20
}

โ€ข Custom stash creation โ€ข Used for houses / props


๐Ÿ”” Notification System โ€‹

lua
Notify({
  text = "Message"
})

โ€ข Supports VORP / RSG / REDEMRP โ€ข Handles all notifications


๐ŸŒ Server Config โ€‹

lua
SV_Config.Webhook = {
  url = ""
}

โ€ข Discord webhook logging โ€ข Tracks stash actions


โš ๏ธ Important Notes โ€‹

โ€ข Stash names must be unique โ€ข SQL must be installed โ€ข Job names must match framework โ€ข Slot limits must be configured โ€ข Item limits must be defined correctly


๐Ÿšจ Common Issues โ€‹

โ€ข Stash not opening โ†’ wrong name โ€ข Items not saving โ†’ SQL missing โ€ข Job stash not working โ†’ wrong job name โ€ข Cannot deposit โ†’ blacklist active โ€ข Cannot upgrade โ†’ max slot reached


๐Ÿ Summary โ€‹

FX-STASH provides:

โ€ข Personal stash system โ€ข Job-based stash system โ€ข Money storage system โ€ข Upgradeable slots โ€ข Item limit & whitelist system โ€ข Full framework compatibility


ยฉ Fixitfy Development

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