config.lua file in the resource root directory.
Settings Reference
| Setting | Type | Default | Description |
|---|---|---|---|
Config.SecretKey | string | '' (required) | Secret key from your RMZ dashboard. Get it from Benefits > FiveM Servers. |
Config.ApiUrl | string | https://fivem.rmz.gg/api/fivem | RMZ API URL. Do not change unless instructed by RMZ support. |
Config.PollInterval | number | 10 | Seconds between each poll for new commands. Minimum: 5. Recommended: 10-15. |
Config.Debug | boolean | false | Enable verbose debug messages in the server console. Useful for troubleshooting. |
Config.NotifyPlayer | boolean | true | Send an in-game notification to the player when a command is executed for them. |
Full config.lua
Polling Behavior
- The resource polls the RMZ API every
Config.PollIntervalseconds for pending commands - Commands are executed immediately via the server console
- After execution, RMZ is notified of the result (success or failure)
- If the confirmation callback fails, commands will be retried on the next poll cycle
Setting
PollInterval too low (below 5 seconds) may trigger rate limiting (30 requests per minute). A value of 10-15 seconds works well for most servers.Online-Required Commands
If you enable “Execute only when player is online” in the benefit settings on the RMZ dashboard:- Commands are not executed during regular polling cycles
- When the target player joins the server, their pending commands are fetched and executed immediately
- This is useful for commands that require the player to be present (e.g. giving items directly to their inventory)
Security
- The secret key is sent only in the
X-Fivem-SecretHTTP header — never exposed in URLs or logs - You can restrict API access to a specific server IP address from the RMZ dashboard
- You can regenerate the secret key at any time if it is compromised

