Skip to main content
Configuration is done in the config.lua file located in the revo_stocktrading directory.

Debug Mode

Enable debug prints in console for troubleshooting:

UI Opening Methods

Enable opening the trading UI via command or inventory item:

Risk Acknowledgement Popup

Shows a one-time risk warning popup that users must acknowledge before trading:

Liquidation & Risk Control

Set the margin level at which all open trades are liquidated. If margin level (equity / usedMargin * 100) falls to or below this percent, all open trades are liquidated:

Charting Library

Choose between Lightweight Charts or Highcharts. For Lightweight Charts, no license is required as it is open-source. For Highcharts, you need to get their license according to your situation and provide the URL to the Highcharts lib.
Important: We do NOT include or redistribute Highcharts. If you wish to use it, please obtain your own license from Highcharts Shop.By default, Revo Stock Trading uses Lightweight Charts (MIT Licensed), which requires no additional setup.

Permissions

Set which groups/roles can access the Stock Management UI (Add, Edit and Delete Stocks). For ESX, group must match (e.g. ‘admin’, ‘superadmin’). For QBCore, role must match (e.g. ‘admin’, ‘god’):

Notification Position

Choose where notifications appear on the screen:
Available positions:
'top-left', 'top-right', 'top-center', 'bottom-left', 'bottom-right', 'bottom-center', 'center-left', 'center-right', 'center-center'

Fixed Leverages

Set leverage values for different asset types. These values are used to determine the leverage for different stock types. More realistic leverage values that balance risk and opportunity:

Contract Sizes

Set contract sizes for different asset types. These values are used to determine the contract size for different stock types. More realistic contract sizes that require appropriate capital:

Deposit & Withdraw Limits

Set minimum deposit and withdrawal amounts:

Economy Protection - Earning Limits System

These settings help protect your server’s economy from exploitation.

Daily Profit Cap

Maximum profit a player can earn per day from trading:

Daily Withdrawal Limit

Maximum amount a player can withdraw from trading account to bank per day:

Loss Attack System

Automatically moves prices against profitable positions to protect your economy. When players are winning too much, the market will push back:

Progressive Tax System

Tax profits progressively - higher earnings = higher tax rate. Tax is applied when closing profitable trades:

Localization

Set the default language:
Available languages: 'en', 'es', 'fr', 'de', 'it', 'pt', 'ru', 'tr', 'pl', 'zh', 'ar' Customize all UI text in the Config.Locales table.
Adjust leverages, contract sizes, permissions, economy protection settings, and localization to fit your server’s needs. For Highcharts, make sure to provide a valid library URL if you choose that option.