01
Before installing: the right game and the right framework
Three checks prevent most failures, before you even download anything:
- The script is made for RedM. A FiveM script does not run on RedM: the two games have neither the same functions nor the same objects. The server refuses it at startup (see the errors below).
- The script is made for your framework. Its page or README says whether it needs
vorp_core or rsg-core. A VORP script does not work on RSG, and vice versa: the guides installing VORP Core and installing RSG Core present both. A "standalone" script depends on no framework.
- Its dependencies are listed:
oxmysql, a library, a menu, an inventory… Install them first.
Get scripts from their author's repository or store. "Free" copies circulating elsewhere sometimes hide a backdoor that gives someone control of your server. And back up the server and the database before each addition.
02
The fxmanifest.lua of a RedM resource
Every resource has an fxmanifest.lua file at the root of its folder. For RedM, it always starts the same way:
fx_version 'cerulean'
game 'rdr3'
rdr3_warning 'I acknowledge that this is a prerelease build of RedM, and I am aware my resources *will* become incompatible once RedM ships.'
description 'My script'
version '1.0.0'
shared_script 'config.lua'
client_script 'client/main.lua'
server_scripts {
'@oxmysql/lib/MySQL.lua',
'server/main.lua'
}
dependencies {
'oxmysql',
'vorp_core'
}
fx_version: cerulean is the current version. The Cfx.re documentation states that version adamant, or a newer one, is mandatory for RedM; the server also refuses an old __resource.lua file.
game 'rdr3': the resource runs on RedM. gta5 means FiveM, and common means "any game", without access to game-specific functions. A resource meant for both writes games { 'rdr3', 'gta5' }.
rdr3_warning: a warning sentence that the server compares word for word. Copy it as is, without translating or changing a single character: it is the one used by the official Cfx.re resources, vorp_core and rsg-core.
dependencies: the resources that must be loaded before this one. If one is missing, the script does not start.
'@oxmysql/lib/MySQL.lua': loads the oxmysql file a server script needs to talk to the database.
The other manifest lines are covered in the guide fxmanifest.lua, which applies to both games.
03
Install the resource step by step
- Download the published release (Releases page on GitHub when there is one) rather than the raw source code, unless the author says otherwise.
- Extract the archive and check there is no extra folder level:
fxmanifest.lua must sit directly in the resource folder, not in myscript/myscript-main/.
- Name the folder exactly as the author expects (often the repository name without
-main): other resources call it by that name.
- Place it in
resources, or in a category folder in square brackets, such as resources/[scripts].
- Adjust the configuration file (often
config.lua): language, prices, positions, allowed jobs.
- Import the SQL if there is any (next section).
- Add the line
ensure folder_name to server.cfg, after the framework and the dependencies.
- Restart the server and read the console.
To try it without restarting the whole server, type refresh in the console, which rescans the resources folder, then ensure folder_name. Still do a full restart before opening the server to players. The order of the ensure lines is explained in the guide RedM server.cfg.
04
SQL files to import
Many scripts ship a .sql file: it creates their tables, or adds items to the framework's tables. Without it, the script starts and then fails as soon as it reads the database.
- import it into the same database as the framework, the one set in
mysql_connection_string;
- import it only once. Open it first: if it contains
DROP TABLE, it deletes an existing table and its data;
- with VORP, a script's items are often added to the
items table; with RSG, follow the script's README, which says where to declare its items.
Importing takes a few clicks with a tool such as HeidiSQL: the method is in the guide HeidiSQL. From the command line, on a machine you manage yourself:
mariadb -u redm -p database_name < script.sql
05
Read the console and fix errors
Read the console from the top: the first error often causes the next ones. The Cfx.re server messages are:
Couldn't find resource …: the name after ensure does not match the folder, or fxmanifest.lua is buried one level too deep.
Resource … does not support the current game (rdr3).: the manifest does not list rdr3. It is usually a FiveM script: look for a RedM version.
Resource … does not contain the RedM pre-release warning in fxmanifest.lua.: the rdr3_warning line is missing or not exact. Copy it from the example above.
Resource … is not using CitizenFXv2 manifest. This is not allowed for the current game (rdr3).: the resource still uses a __resource.lua. It needs an fxmanifest.lua.
No such export …: the script calls a resource that is not started, starts after it, or belongs to another framework.
Table '…' doesn't exist: the SQL file was not imported, or not into the right database.
On the player side, the F8 key opens the game console, which shows client script errors. Other messages, shared by FiveM and RedM, are decoded in the guide FiveM server errors.
06
On CloudFive
On a RedM hosting plan, everything is done from the client area: the Files tab accepts drag and drop, extracts archives and opens server.cfg and config.lua files in its editor; SFTP access is also available. The MariaDB databases included with the plan take your SQL files, and the live console shows each resource starting. Create a backup before adding a script: it restores in one click if something breaks.
VORP Core installs in one click; RSG Core is installed by hand on the basic RedM server. Servers run in France on Ryzen 9 9950X, with Premium Anti-DDoS included, billed monthly with no commitment, and support answers in French, 7 days a week.
07
Frequently asked questions
How do I install a script on a RedM server?
Put the script folder in resources, check that its fxmanifest.lua is at the root, import its SQL file if it has one, then add ensure followed by the folder name to server.cfg, after the framework. Then restart the server and read the console.
What must the fxmanifest.lua of a RedM script contain?
fx_version 'cerulean', game 'rdr3' and the rdr3_warning line with the exact Cfx.re warning sentence. Without this line, or if a single character differs, the server refuses to start the resource.
Does a FiveM script work on RedM?
No. The two games do not have the same functions or objects, and the server refuses a resource that does not declare rdr3. Look for a version of the script written for RedM.
Does a VORP script work with RSG Core?
No, not as is. A script calls its framework's functions, and VORP and RSG do not expose them in the same way. Use a script written for your framework, or a standalone script.
Where do I import a RedM script's SQL file?
Into the same database as your framework, the one set by mysql_connection_string in server.cfg, and only once. Read the file first: a DROP TABLE line deletes an existing table.