Configuring qs-server

To enable advanced server monitoring features such as live CPU/RAM usage tracking and a real-time server console log, you’ll need to configure the config.json file inside the shared folder.


Basic Steps

1

Navigate to the shared folder inside the resource.

2

Open the config.json file.

3

Replace the placeholder paths with your actual resource and log file directories.

Example Configuration

{
  "resourcesDir": "<Your resources path>",
  "logFiles": [
    "<Your path here>/txData/default/logs/fxserver.log",
    "<Your path here>/txData/default/logs/server.log"
  ],
  "logSampleIntervalMs": 500,
  "statSampleIntervalMs": 5000
}

Explanation

1

resourcesDir

Path to your FiveM resources folder.

2

logFiles

Absolute paths to your server log files. These are used to display real-time logs inside the admin panel.

3

logSampleIntervalMs

Frequency (in milliseconds) at which logs are sent to the NUI interface.

4

statSampleIntervalMs

Frequency (in milliseconds) at which system stats (CPU/RAM) are updated in the UI.

Make sure all paths are correctly set to avoid errors in the dashboard display.

Last updated