๐Ÿ“ˆ Pogue StockMarket Script For RedM

Welcome to the Pogue StockMarket Script, a dynamic trading system designed to bring stock and commodity trading to your RedM server.

๐Ÿ’ฌ Support


๐Ÿ“œ Overview

The Pogue StockMarket Script allows players to trade stocks and commodities while brokers and special jobs manage commissions. Stock prices update dynamically based on configurations, and all settings are easily adjustable via the config.lua file. Brokers, bankers, and bookmakers play a unique role in the serverโ€™s economy, collecting commissions while facilitating trades.


โœจ Features

๐Ÿ“Š Stock Trading

  • Add any stock or commodity to the system.

  • Real-time stock price updates based on configurable variables.

๐Ÿ’ฐ Player Interaction

  • Players can track stock prices, buy, and sell stocks.

  • Transactions include a configurable commission fee, collected into a pool.

๐Ÿค Broker and Special Jobs System

  • Brokers are exempt from commission fees.

  • Special jobs (e.g., banker, bookmaker) have unique, reduced commission rates.

  • Commissions are accumulated into a pool, which brokers can withdraw at any time.

โš™๏ธ Customization

  • Adjust settings such as stock lists, commission rates, special jobs, and price update intervals via config.lua.

  • Add or remove jobs and define custom commission rates for each job.


๐Ÿ”ง Installation Instructions

1. Add the Script to Your Server

  1. Place the pogue_stockmarket folder into your server's resources directory.

  2. Add the script to your server configuration file (server.cfg):

2. Set Up the Database

  1. Run the following SQL files:

    • stock_commodity for VORP.sql: "Items" table for storing commodity details. (If you use RSG, use Items For RSG.txt

    • pogue_stocks.sql: Manages stock names and prices. The "item" column in both SQL tables must have matching names.

    • pogue_broker.sql: Tracks broker commissions.

    • pogue_stocks_price_and_volatility.sql: For stocks and volatility

3. Add Images to VORP Inventory

  1. Copy the images from the img folder in the script.

  2. Paste them into your vorp_inventory/html/img/items directory.

4. Configure Settings

  • Open the config.lua file to adjust:

    • Commission Rate:

    • Broker Job Name:

    • Special Jobs and Rates:

    • Volatility Intervals:

    • Price Update Frequency:


๐Ÿ› ๏ธ Requirements

  • VORP Core Framework: Ensure vorp_core is installed and functional.

  • RSG Core Framework: Ensure rsg_core is installed and functional.

  • oxmysql: Required for database integration.


๐ŸŽฎ How It Works

1. Adding Stocks and Commodities

  • Use the SQL tables (stock_commodity.sql and pogue_stocks.sql) to define items and their prices.

  • Ensure that the "item" column in both tables matches the item names in the inventory system.

2. Trading Stocks

  • Players can buy and sell stocks, paying a configurable commission fee.

  • Stock prices update dynamically based on the intervals defined in config.lua.

3. Broker and Special Jobs

  • Brokers:

    • Brokers pay no commission and collect all transaction fees.

  • Special Jobs:

    • Jobs like banker and bookmaker have unique, reduced commission rates.

    • All commissions, regardless of job, are pooled into the broker account.

4. Dynamic Price Updates

  • Stock prices adjust automatically at intervals defined in config.lua, creating a dynamic and immersive trading experience.


๐Ÿ“‹ Special Considerations

  • Collaborative Economy: Brokers and special jobs like banker and bookmaker provide players with multiple trading options, even when brokers are offline.

  • Customization: Configure the script to suit your serverโ€™s economy by adjusting rates, jobs, and update frequencies.

  • Inventory Integration: Ensure item names in SQL tables match those in your inventory system for seamless functionality.


For support or additional resources, join our Discord or visit our Tebex store.

Enjoy the Pogue StockMarket Script and bring an engaging trading system to your server! ๐Ÿ“ˆ

Last updated