FiveM — troubleshooting
Typical FiveM server errors and how to fix them.
On this page
Startup errors
| Message | Cause and fix |
|---|---|
| Invalid license key | Wrong or inactive Cfx.re key. Generate a new key and enter it under “Startup”. |
| Couldn't find resource | The name in ensure differs from the folder name, or the resource is outside resources/. |
| [oxmysql] … ECONNREFUSED / Access denied | Wrong details in mysql_connection_string. Copy them again from the Databases tab. |
| SCRIPT ERROR: … attempt to index a nil value | A script bug or wrong load order. Make sure the framework starts before the resources that use it. |
Player connection problems
- Server not showing in the list — check
sv_hostnameandsets tags; the list refreshes with a delay.connect IP:PORTworks directly. - Long loading / dropping while downloading — streamed assets are too large. Optimize textures (YTD) and split packs up.
- “Server didn't respond” — the server is off or restarting; check the console and txAdmin.
Performance
In game press F8 and type resmon 1 to see which scripts use the most CPU time. Scripts that stay above ~0.5 ms are worth optimizing or replacing.
Was this page helpful?