๐ 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
Place the pogue_stockmarket folder into your server's resources directory.
Add the script to your server configuration file (
server.cfg):
2. Set Up the Database
Run the following SQL files:
stock_commodity for VORP.sql: "Items" table for storing commodity details. (If you use RSG, use Items For RSG.txtpogue_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
Copy the images from the img folder in the script.
Paste them into your
vorp_inventory/html/img/itemsdirectory.
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_coreis installed and functional.RSG Core Framework: Ensure
rsg_coreis installed and functional.oxmysql: Required for database integration.
๐ฎ How It Works
1. Adding Stocks and Commodities
Use the SQL tables (
stock_commodity.sqlandpogue_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
bankerandbookmakerhave 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
bankerandbookmakerprovide 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