![[ESX/QB] Stock Market - The best one! main image](https://forum-cfx-re.akamaized.net/optimized/5X/2/6/e/a/26ea973f2d4e53eb0d507a8d3016ce17c759f280_2_345x197.webp)
![[ESX/QB] Stock Market - The best one! thumbnail 1](https://forum-cfx-re.akamaized.net/optimized/5X/2/6/e/a/26ea973f2d4e53eb0d507a8d3016ce17c759f280_2_345x197.webp)
![[ESX/QB] Stock Market - The best one! thumbnail 2](https://forum-cfx-re.akamaized.net/optimized/5X/e/2/1/5/e215c71740d4bcd509e618b1a9178eb76bda9271_2_586x500.png)
![[ESX/QB] Stock Market - The best one! thumbnail 3](https://forum-cfx-re.akamaized.net/optimized/5X/7/d/8/8/7d88db22e7468a7a3c9f7307db3a6b2566ebe415_2_586x500.png)
Price
UnknownA script by OsmFX
Price
UnknownThe Most Realistic Trading Script ever built for FiveM
A comprehensive stock trading system for FiveM QBCore / ESX framework, featuring real-time price updates, dynamic market behavior, and admin controls.
[PURCHASE LINKS]
QBCore: ESCROW | OPEN
ESX: ESCROW | OPEN
Images for preview are below the features section.
You can integrate your in-game businesses to manipulate the stock market based on their performance.
-- Modify single stock price
exports['osm-stockmarket']:ModifyStockPrice(symbol, impact, reason)
-- symbol: Stock symbol (e.g., 'LIFE')
-- impact: -100 to 100 (percentage impact)
-- reason: Reason for modification
-- Modify multiple stocks
exports['osm-stockmarket']:ModifyMultipleStocks(modifications)
-- modifications: Table of stock modifications
-- Example: {
-- LIFE = { impact = 50, reason = "Record profits" },
-- MAZE = { impact = -30, reason = "Security breach" }
-- }
/modifystock [symbol] [impact] [reason]
/modifystock LIFE 50 "Company announced record profits"
/stockhistory [symbol] [limit]
View stock modification history
Example: /stockhistory LIFE 10
/stockrollback [hours] [citizenid]
Rollback transactions within specified timeframe
Example: /stockrollback 24 ABC123
/stockstats [citizenid]
View trading statistics
Example: /stockstats ABC123
Config.Market = {
PriceImpactFactor = 0.001, -- Trading impact (0.1% per share)
VolumeDecay = 0.98, -- Volume decay (2% reduction per update)
MinimumPrice = 0.1, -- Minimum price (10% of base)
MaximumPrice = 10.0 -- Maximum price (1000% of base)
}
Config.Trading = {
MinQuantity = 1, -- Minimum shares per trade
MaxQuantity = 1000, -- Maximum shares per trade
UpdateInterval = 30, -- UI refresh rate (seconds)
PriceDisplayDecimals = 2 -- Price decimal places
}
stocks.sql
to your databaseensure osm-stockmarket
config.lua
as needed/stocks
-- Affect stock price based on game events
exports['osm-stockmarket']:ModifyStockPrice('LIFE', 30, "Successful marketing campaign")
-- Multiple stock modifications
exports['osm-stockmarket']:ModifyMultipleStocks({
LIFE = { impact = -20, reason = "Security breach" },
MAZE = { impact = 15, reason = "New partnership" }
})
The stock market simulates realistic behavior through:
For support and other queries - Discord
My Latest Release
My Top Selling Scripts
Code is accessible | Config only (escrowed) |
Subscription-based | No |
Lines (approximately) | 1000 |
Requirements | qb / esx, ox-lib |
Support | Yes |
No approved reviews found for this script yet.