Safe Pocket | Advanced VIP Inventory Extension
Safe Pocket is an advanced, highly optimized VIP inventory extension built specifically for ox_inventory. It allows server owners to effectively monetize their servers while providing players with a seamless and secure secondary storage system.
Key Features
Live Sync: Uses FiveM StateBags for instant client-server communication with no performance drops.
Secure: Items are validated server-side using
ox_inventoryhooks, preventing exploits.Dynamic UI: Features a beautiful, scaling UI that automatically adapts to the inventory screen and displays real-time countdowns.
Multi-Framework: Works seamlessly on ESX, QBCore, and Standalone servers right out of the box.
Realistic Confiscation & NPC System
When a player's VIP expires, the system follows a realistic roleplay flow:
Grace Period: Players can no longer put items in, but they can still take items out of their safe.
Confiscation: After a configurable amount of days, the safe is wiped, and contents are moved to the "Debt Collector" NPC.
Recovery: Players visit the NPC to preview their confiscated items and pay a fine to recover them.
Police Searches & Consent
Law enforcement can interact with a suspect's Safe Pocket if permitted:
Job Access: Define exactly which jobs and grades have the authority to search pockets.
Consent Dialog: If enabled, suspects receive a prompt to "AGREE" or "DECLINE" the search, notifying the officer of the choice.
Tebex Integration & VIP Transfer
Automated Delivery: Configure Tebex to automatically grant VIP status using the built-in command:
add_safepocket {sid} 30 gold {transaction}Transfer System: Players can transfer their Safe Pocket to another character or friend using their Tebex Transaction ID via command.
Account Locking: Choose whether codes can only be used by the same Rockstar license or if they can be gifted to others.
VIP Package Configuration (Tiers)
| Package | Slots | Safe Weight | Inventory Bonus |
| Bronze | 3 slots | 10 kg | +5 kg |
| Silver | 5 slots | 25 kg | +10 kg |
| Gold | 10 slots | 55 kg | +20 kg |
Technical Management
Keybind Management: Choose between server-locked keys (
static) or allow players to set their own (keybind).Item Filtering: Support for both Whitelist (only specific items allowed) and Blacklist (all items allowed except specific ones) modes.
ACE Permissions: Easily manage administrator access for commands like
/removevipviaserver.cfg.Editable Code: Simple integration for custom notification or dialog systems.



Config.lua

Dependancies: ox_inventory, ox_lib, ox_target or qb-target


