π Overview
Codex Player Owned Stores turns your RedM world into a living marketplace.
Players can rent, manage, and profit from their own shops across the map, while you keep full control over taxes, balance checks, and persistence through the integrated Codex Core framework.
From store rental and product management to employee handling and real-time syncing, this system is built for serious economy-focused RP servers.
β Core Features
π Dynamic Store Rental
Players can rent available stores in-game via an intuitive hold-prompt interaction.
Secure renting with anti-spam locks and double-rent prevention.
Store names can be customized via the NUI interface after rental.
π€ Advanced Ownership Management
View detailed sales statistics (total sales, taxes, profits).
Collect store profits with dynamic tax calculation.
Update store information (name, data) directly from the NUI.
Ownership is saved and synced in real time and persists through restarts.
π€ Employee System
Store owners can hire employees to help manage their shops.
Employees are synced and saved in the database.
Employee permissions are restricted β they cannot withdraw money or access sensitive owner options.
π Buyer Experience
Players browse products in a clean, immersive UI.
Prices and stock are handled dynamically with real-time updates.
Secure purchase flow with proper money & item checks on the server.
π¦ Product Management
Add and update products directly from your inventory.
Fully persistent stock and pricing saved in SQL.
Integrated with Vorp Inventory and RSG Inventory for item handling.
π Backend & Blips
Seamless server-side synchronization of:
Store ownership
Products & stock
Employees
Persistent store tracking through codex_core.
Store blips update dynamically based on ownership and display custom store names.
Automatic blip cleanup on resource stop to prevent map clutter.
π§ Smart Prompt System
Uses CodexPromptAPI for contextual interaction prompts:
πͺ Rent Store
π Buy from Store
βοΈ Manage Owned Store
All prompts feel native and immersive to your RedM world.
πΌ Real Economy Integration
Full server-side validation for:
Item stock
Player money
Ownership and employee permissions
Uses
CodexCore.TriggerServerCallbackfor secure, real-time economy transactions.Perfect for progression systems where trading, taxes, and profit matter.
π Utility & Commands
/refreshstorescommand to re-fetch and sync store data on demand.Real-time syncing of store ownership and employees between players.
Clear notifications for both errors and successes.
π Localization & Persistence
Multi-language support out of the box:
English, Spanish, French, Italian, German, Turkish, Romanian
All store, product, and employee data is stored in SQL, ensuring consistent behavior across restarts.
β Ideal For
RP servers wanting player-driven economies.
Trading-based progression or merchant-style gameplay.
Community servers that want customizable, interactive, and persistent player-owned shops.
π¦ Dependencies
codex_corecodex-notificationsoxlib
UI prompts and alerts are handled through codex-notifications and oxlib context menus.
π§± Framework Support
Via Codex Core, the script supports:
RSG
VORP
TPZ-CORE
π§ Developer Notes
Modular and easily extendable for:
Custom taxation rules
Alternative inventory systems
Job-locked or faction-specific stores
Clean, organized codebase focused on stability, security, and performance.
Docs Page : https://codexstudios.gitbook.io/codexstudios-store
Video Preview Β : https://www.youtube.com/watch?v=54J9VYmd_NQ

