Invalid resource name
A script's folder name has characters the server will not accept — usually spaces or capital letters from unzipping a download.
Do this first
Rename the folder to lowercase with no spaces, then update the matching line in server.cfg.
What it means
The folder name is not usable as a resource name. FiveM accepts lowercase letters, digits, underscores and hyphens; anything else is rejected, and on a Linux host capitals are a problem of their own.
What causes it
Ordered by how often it is the answer.
- 1
Spaces in the folder name
My Script (v2)— the usual result of unzipping a download without renaming. - 2
Capitals, on a Linux server
The folder resolves differently from the
ensureline. - 3
Brackets used outside their meaning
[category]groups resources. A resource itself named[thing]is a category with nothing in it. - 4
Dots in the name
my.scriptreads as a path fragment. - 5
A name that collides with a built-in
Naming a resource
chat,spawnmanagerorsessionmanagershadows the one FXServer ships.
How to tell which one is yours
Look at the folder name. This one is visible without any diagnosis: if it is not ^[a-z0-9_-]+$, that is the problem.
Where to look
The resources tree, and the matching ensure line.
How to fix it
Rename the folder to lowercase with hyphens or underscores, then update server.cfg to match exactly:
resources/[local]/my-script/ # server.cfg ensure my-script
Still stuck on your own code?
This page is what this error usually means. Paste your console into Server Fixer and it will rank everything in it and tell you what to do first, and if you would rather not touch it, ORBIE can repair the script and hand the resource back ready to drop in.
bug_reportOpen Server Fixer