Skip to main content

🛒 Shop System

A high-quality, modern Player-Owned Shop System for RedM with Glassmorphism UI and extensive management features.

✨ Features

🏪 Player-Owned Shops

  • Purchase System - Players can buy shops for configurable prices
  • Dynamic Inventory - Owners decide what to sell
  • Management Dashboard - Secured area for business management

💼 Shop Management

  • Stocking - Add items from your own inventory to the shop
  • Pricing - Set custom prices for every item
  • Categorization - Assign items to categories (Food, Weapons, Misc, etc.)
  • Editing - Modify price and category of existing stock anytime
  • Removal - Remove items from the shop
  • Funds - Money from sales goes to the shop's "Cash Register"

⏱️ Inactivity System

  • Auto-Wipe - Shops are automatically released after inactivity
  • Cleanup - Removes owner and wipes inventory
  • Activity Tracking - Actions like adding items reset the timer

🖥️ User Interface

  • Modern Design - Glassmorphism aesthetic with dark transparencies
  • Real-Time Updates - Stock and funds update instantly
  • Dual Views - "Shop View" for customers, "Management View" for owners

📥 Installation

  1. Copy mulderdev_shop to your resources folder
  2. Import install.sql into your database
  3. Adjust config.lua (check Config.MaxInactivityDays)
  4. Add ensure mulderdev_shop to your server.cfg

Upgrade from V1

ALTER TABLE `mulderdev_shops` ADD COLUMN `last_active` TIMESTAMP DEFAULT CURRENT_TIMESTAMP;
ALTER TABLE `mulderdev_shop_inventory` ADD COLUMN `category` varchar(50) DEFAULT 'misc';

⚙️ Configuration

General Settings

Config.CanBuyShops = true       -- Enable player ownership
Config.DefaultShopPrice = 1000.0
Config.MaxInactivityDays = 14 -- Auto-wipe after 14 days of inactivity
Config.Locale = 'en' -- 'de' or 'en'

Adding Categories

Config.Categories = {
['food'] = { label = "Food & Drinks", icon = "fas fa-utensils" },
['rare'] = { label = "Rare Items", icon = "fas fa-gem" },
}

🎮 Usage

For Players

  1. Go to a shop marker
  2. Press [G]
  3. Browse categories and purchase items

For Shop Owners

  1. Buy a Shop - Press [G] at an unowned shop and click "Buy"
  2. Manage Shop - Open the shop and click "Management" (top left)
    • Add Item - Click an item in "Your Inventory", set Quantity/Price/Category
    • Edit Item - Click the Pencil icon
    • Remove Item - Click the Trash icon
    • Withdraw - See "Shop Register" and withdraw your earnings

📋 Requirements

  • VORP Core
  • VORP Inventory
  • oxmysql