Storage Boxes

Storage Boxes

£10.00

Add to Basket

Description: This is a storage/stash system script for RSG
that allows players to place persistent storage boxes in the game world. Players can:

b60e31a732783867c30b7677bb07c8d58a47bd2b.png99be0d1e36ea8a47c9d133b30abbc32a9070c94a.png7cc6246a5c2e2aea570d0d5707f9f60ce29b6eeb.png



Updated V3  "UPDATED"


- Resource Clean-up - FIXED 

- Optional Storage Code Issue - FIXED

- Missing Translations - FIXED 

- Lockpick Functionality - FIXED 


Now Saves in Inventory when Press Cancel, Only Removed From Inventory when Placed.
New Image added - Thanks to Tankie


  • Place storage boxes in the world
  • Access their stored items
  • Set access codes for security
  • Destroy their stashes
  • Items persist through server restarts

Key Features:

  • Secure stash system with optional PIN protection
  • Persistence through server restarts (saves to database)
  • Multiple stashes per player (configurable limit)
  • Visual smoke effects when destroying stashes
  • Ground vegetation clearing around stashes (optional)
  • Target system integration for interaction

Config Options:

luaCopyConfig.EnableVegModifier = true   -- Clears vegetation around stashes
Config.StashMaxWeight    = 4000000 -- Maximum weight capacity
Config.StashMaxSlots     = 48      -- Number of inventory slots
Config.DestroyTime       = 10000   -- Time to destroy stash (milliseconds)
Config.MaxStashes        = 8       -- Max stashes per character
Config.StashProp         = 's_footlocker05x' -- Prop model used

Usage:

  1. Players can create stashes using either:
    • /createstash command
    • Using a "storagebox" item
  2. Players can:
    • Set access codes
    • Open stashes
    • Destroy their own stashes
    • Store/retrieve items

Database Integration:

  • Uses MySQL to store:
    • Stash locations
    • Access codes
    • Ownership information
    • Properties/configuration
  • Table: player_stashes
    • Stores stash properties
    • Links stashes to player citizenids
    • Maintains access codes

Dependencies:

  1. RSG-Core (RedM core framework)
  2. RSG-Target (for interaction)
  3. RSG-Inventory (inventory system)
  4. MySQL Async
  5. Ox_lib (for notifications and UI elements)

Security Features:

  • Ownership verification
  • Optional PIN protection
  • Server-side validation
  • Anti-duplication checks
  • Distance checks for placement

The script includes several safeguards:

  • Can't place stashes too close together
  • Only owners can destroy stashes
  • Server-side ownership verification
  • Protected access code system

This script would be particularly useful for RedM roleplay servers where players need persistent storage solutions with security features.