RSG Framework
RSGServers
RedM Resource & Ingestion API

Integrating rsg-serverlist

Connect any RedM server running RSG Framework to this listing website using the server-only Lua resource rsg-serverlist.

Download rsg-serverlist.zip

1. Register & Install the Resource

  1. Go to Register Server to generate your rsg_live_... API key and owner management token.
  2. Download rsg-serverlist.zip and extract the rsg-serverlist folder into your RedM server's resources/[rsg]/ directory (so resources/[rsg]/rsg-serverlist/fxmanifest.lua exists).
  3. Configure your server.cfg with the endpoint URL and API key convar (never put API keys in shared/client scripts), then run refresh and ensure rsg-serverlist in your server console.
server.cfg
# Add to your RedM server.cfg
set rsg_list_endpoint "https://your-listing-domain.com/api/v1/heartbeat"
set rsg_list_api_key "rsg_live_your_generated_api_key"
ensure rsg-core
ensure rsg-serverlist

2. Security & Heartbeat Behavior

  • • Server-only execution: rsg-serverlist sets server_only 'yes' in fxmanifest.lua so clients never download the resource or see credentials.
  • • Hashed & encrypted API keys: Keys are SHA-256 hashed for heartbeat authentication via Authorization: Bearer <key> or X-API-Key.
  • • Rate limiting & TTL: Each key accepts up to 6 heartbeats/minute (recommended interval: 60s). If a server stops sending heartbeats for 180 seconds, it automatically transitions to Offline.

3. Heartbeat Endpoint Reference (POST /api/v1/heartbeat)

You can also test the ingestion API directly with curl using an API key from /register:

Test Heartbeat Request
curl -X POST http://localhost:3000/api/v1/heartbeat \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "serverName": "Valentine Frontier RP",
    "playersOnline": 42,
    "maxPlayers": 64,
    "queueCount": 3,
    "uptimeSeconds": 14400,
    "rsgVersion": "RSGCore v3",
    "txAdminVersion": "7.3.2",
    "frameworkResources": ["rsg-core", "rsg-inventory", "rsg-horses", "rsg-serverlist"],
    "customMetadata": {
      "voiceSystem": "rsg-voice",
      "economyType": "Realistic 1899"
    }
  }'