Replace a built-in FiveM resource
FiveM ships a few system resources inside the server build itself and loads them on every start. They belong to the FiveM build your server runs, not to your own files. Do not edit them where they are: when the build changes, the original copies come back.
Instead, you can put your own version of a system resource in a special folder in your server files, and the server uses yours in place of the built-in one. These are the resources you can replace:
| FiveM | FiveM Enhanced | What it is |
|---|---|---|
chat | chat | The in-game chat box |
monitor | txadmin | The txAdmin management panel |
webpack | Bundles resource JavaScript when resources are built | |
yarn | Installs resource dependencies when resources are built |
Most servers only need chat
Replacing chat is by far the most common case. Leave the others alone unless you know you need to change them.
If you just want no chat at all, you do not need a replacement: see Turn off the default chat below.
Add your own version
Your replacement goes in a folder named after the resource, inside the .server folder in your server's config folder. For chat, that is config/.server/chat/.
With the file manager
- Open your server and pick Files in the side menu.
- Open the
configfolder. - If there is no
.serverfolder yet (note the dot at the start), create it. - Inside
.server, create a folder named exactly after the resource you replace, for examplechat. - Upload your resource into that folder, so its
fxmanifest.luasits directly inconfig/.server/chat/. - Restart the server.
Over SFTP
SFTP shows the same files as the file manager, so the folder is /config/.server/ there too. On some servers the files are one level down, inside a server/ folder; if that is all you see after connecting, open it, and the folder is /server/config/.server/.
How to turn on SFTP and connect is explained in Manage your server files and connect over SFTP.
What it should look like
Each replacement has its own folder. You can replace one resource or several:
Code
On every start, the server sets the built-in copy aside and uses your folder in its place. FiveM loads your resource exactly as if it were the original, so you do not need to change server.cfg.
The folder name must match the resource name
The folder must be called exactly chat, monitor, webpack or yarn (on FiveM Enhanced, chat or txadmin). A folder with any other name is ignored.
Replacing monitor or txadmin replaces txAdmin
That resource is the txAdmin panel. Only replace it if you mean to run a modified txAdmin. An empty or broken folder leaves you without an admin panel.
Go back to the original
Delete or rename your folder under config/.server/ and restart the server. The built-in version is used again from that start on.
Turn off the default chat
Chat is the one resource you can also switch off completely.
- Open your server and pick Configuration in the side menu.
- Turn off Default chat.
- Click Save.
While it is off, the server sets the built-in chat aside on every start, before FiveM loads it. Nothing is deleted: turn Default chat back on and the built-in chat returns.
Use this if you want a server with no chat, or if you run your own chat as a normal resource under resources/ and start it from server.cfg.
After you save, a message tells you whether the server restarts to apply the change.
Frequently asked questions
Can I replace more than one resource at once?
Yes. Add one folder per resource under config/.server/. Each one is picked up on its own, and resources without a folder keep the built-in version.
What if I turn off the default chat and also add my own chat folder?
Your folder wins: the built-in chat is set aside and your config/.server/chat/ is used in its place.
Will my replacements survive a resize or reinstall?
Yes, with one exception. They are part of your server files, so restarting, resizing or reinstalling with Keep my files keeps them. Reinstalling with Start fresh deletes all your files, including these.
