Skip to content

FiveM: Installing Resources – in One Click or via SFTP

Install FiveM resources in one click or via SFTP. Plus: what to do if your FiveM server won't start afterwards or a resource doesn't load.

29 November 202612 min read87 Views0 helpful

Don't have your own server yet? Host your FiveM server with ZAP-Hosting from €5.29 / month.Or try 3 days from €0.95

Introduction

You can use resources to expand your FiveM game server with additional features. This is especially exciting if you are planning larger projects like a roleplay server or similar. Such projects are hardly possible without these additional resources.

FiveM and its community offer a huge selection of resources. An overview of the most popular resources can be found in the Cfx.re forum: https://forum.cfx.re/c/development/releases/7

The fastest way to install a resource is the FiveM Resource Installer right in your dashboard. You upload the ZIP archive, and the installer places the resource in the right folder, adds it to your server.cfg and, if you want, imports the included SQL files into your database. The classic way via SFTP is described further below.

Installing resources with the Resource Installer

Info

The Resource Installer is available for FiveM servers. For FiveM Enhanced and RedM, use the SFTP method.

Step 1: Open the installer

Open your FiveM server's dashboard, go to the Tools tab and select FiveM Resource Installer. You don't need to stop your server.

A server template (recipe) must already be set up in txAdmin. Only then is there a server.cfg and a resources folder the installer can write to.

Step 2: Upload the ZIP archive

Upload the resource as a ZIP archive. If available, use the ready-made release ZIP from the resource's GitHub page (Releases → e.g. ox_lib.zip). The source download via Code → Download ZIP (folder ending in -main) only works for resources without a build step. For resources with a UI such as ox_lib or ox_inventory, it lacks compiled folders like web/build and the resource will not start. If the installer detects such an archive, it warns you before installing.

  • ZIP files up to 100 MB are allowed (at most 400 MB and 5,000 files unpacked).
  • Repackage RAR and 7z archives as ZIP files first.
  • The installer removes unnecessary intermediate folders (e.g. my-resource-main) and strips version and -main suffixes from the name.
  • If an archive contains several resources, the installer lists them separately and sorts them by their dependencies.
  • Executable files such as .exe, .bat or .sh are never written to your server.

Step 3: Check the analysis

Before anything is installed, the installer shows you what's in the archive:

  • Name and target folder: The name may contain letters, digits and _, . and - (64 characters max). Under Folder in resources/ you pick the category folder, for example [standalone]. If the archive doesn't bring one, [local] is preselected. Directly in resources/ (no folder) places the resource without a category folder.
  • Dependencies: For each dependency (e.g. ESX, QBCore, Qbox, ox_lib, oxmysql) you see whether it is in the archive, on the server or missing from the server. Dependencies that only show up in the code and aren't listed in fxmanifest.lua are marked as suspected.
  • Security scan: The installer checks all .lua and .js files for known malicious code patterns. If it finds one, you get a warning. You can still install the resource, but the security scan disables it at the next server start. If you think it's a false positive, contact our support.
  • SQL files: Included .sql files are listed, together with which tables they create, modify or write data to.

If the resource already exists on your server, the installer stops by default. To replace it (e.g. for an update), tick Overwrite existing resource. This replaces the entire folder, including your settings such as config.lua. The old folder is saved as an archive under backups/resource-installer/ first.

Step 4: Install and start automatically

Leave Add to server.cfg so it starts automatically ticked. The installer then adds ensure <name> after the resource's dependencies in the server.cfg of your active server folder and saves the old server.cfg as server.cfg.bak-… first.

Click Install on server. You'll see the progress (backup, extracting, putting in place, updating server.cfg, checking the result). The installation keeps running if you close the page.

The result tells you how the resource starts:

  • ensure line added to server.cfg: all done.
  • already in server.cfg: the line was already there.
  • starts via the category folder: your server.cfg already contains ensure [category], which starts the resource as well.
  • ensure line still missing: add ensure <name> to your server.cfg yourself (see Activation).

For FiveM to load the new resource, restart your server with Restart server. Alternatively, enter refresh and then ensure <name> in the live console.

Step 5: Import the SQL file (optional)

If the resource needs a database, you import its SQL file right from the installer. This does not happen automatically, only when you click Import into database for the file.

  1. Select your server's database. The primary database is preselected. If your server doesn't have a database yet, create one via Create database in the Databases tab.
  2. If tables from the file already exist, the dialog tells you. Keep Skip existing tables (recommended) selected. This keeps existing tables and their data untouched.
  3. With an active ZapX Pass, a backup of the database is created automatically before the import. Without a Pass, you confirm that you're importing without a backup.
  4. Click Import now.

Each file can have up to 2 MB and 5,000 SQL statements. Import larger files via phpMyAdmin as described in FiveM: Importing an SQL File.

Info

The import always runs in the selected database, so lines like CREATE DATABASE … or USE … are not allowed. If the file contains such a line, it won't be imported. Remove those lines, repackage the ZIP and upload it again.

Common errors and solutions

Message or problemSolution
RAR and 7z archives are not supportedUnpack the archive and repackage the folder as a ZIP file.
This archive cannot be installedCheck the name and target folder. If a resource with the same name exists in another folder, rename the new one or remove the old one. If the archive has no fxmanifest.lua (or __resource.lua), it isn't a resource but, for example, only a map or vehicle file.
Dependency missing from the serverInstall the missing resource (e.g. ox_lib) first, also with the installer. Without it, the resource usually won't start.
Note about a missing recipe or server templateSet up a server template in txAdmin first, then open the installer again.
An installation is already running on this serverWait until the running installation has finished. It stays visible on the page.
Installation was interrupted or failedCheck your server and start the installation again. If an existing resource was being overwritten, the installer restores the old folder on failure.
SQL: USE is not allowed or Creating, modifying, or deleting databases is not allowedRemove the USE and CREATE DATABASE lines from the SQL file and upload the ZIP again.
SQL: Failed at line …The statements up to that line have already run. Fix the file and run the import again with Skip existing tables.
Resource doesn't start after the restartRead the first message about your resource in the console and compare it with the table under Server won't start or resource doesn't load?.
Info

Want to check an archive before installing it? Our free FiveM Resource Installer tool analyzes it right in your browser without uploading anything.

Installing manually via SFTP

Preparation

Resources are installed via SFTP. So you need an SFTP client such as FileZilla or WinSCP to upload files to your game server. Our SFTP Access guide explains how to set up the connection.

Downloaded resources are usually provided in compressed form. This means you need to extract the packed files using an extraction program like 7Zip, Winrar, or WinZip. The extracted resource folder should contain at least the following files: __resource.lua or fxmanifest.lua as well as the associated script files.

Info

If these files are not immediately visible, they might be inside a subfolder within the resource.

Uploading Files

Now you need to upload the previously extracted files as a single folder (if not already done). Your folder must be uploaded into the resources directory of your active server folder. After the SFTP login, it is located at fivem/<variant>/<Name>_<Code>.base/resources, for example fivem/standard/Qbox_E99E54.base/resources. To see which server folder is active, open txAdmin and go to Settings → FXServer, field Server Data Folder. The full folder structure is explained in the section FiveM: Manage server files via SFTP of the SFTP guide.

Some resources work with a database and often already include SQL files that need to be imported into the database. The easiest way is the SQL import in the Resource Installer, or follow our guide SQL File Import.

Activation

To have the installed resource loaded when the server starts, you first need to activate it in your server's server.cfg file. Activation is done using the command ensure [example resource].

For example, if you uploaded the resource in the folder eup-ui, the command in the config should look like this:

Code
ensure eup-ui

start works instead of ensure as well. ensure restarts a resource if it is already running, which is why it is the recommended command.

You can access your server.cfg file via the CFG Editor in the txAdmin interface.

Info

Make sure the name of the folder you created exactly matches the one in the ensure command – case sensitivity matters here.

Info

Order matters: resources start in the order they appear in your server.cfg. Base resources such as oxmysql, ox_lib and your framework (e.g. es_extended or qb-core) therefore go before the resources that need them. Check your server.cfg for typos with our free FiveM server.cfg Checker.

Server won't start or resource doesn't load?

If your FiveM server stops starting after you add a resource, or the resource is missing in game, the reason is almost always in the console. Here is how to find it.

Find the error in the console

Restart the server and read the output in the Console tab of your dashboard or under Live Console in txAdmin. FiveM reports resource problems in yellow text. What matters is usually the first message about your new resource. Follow-up errors from other resources that wait for it disappear once the first one is fixed.

Console messageMeaningSolution
Couldn't find resource my-resource.FiveM cannot find a folder with this name.Check that the folder name matches the ensure line exactly (case-sensitive) and that the folder is in the right resources directory.
Could not find dependency ox_lib for resource my-resource.A required resource is missing on the server.Install the missing resource and add it to your server.cfg before your resource.
Couldn't start resource my-resource.The resource was found but could not start.Read the lines right above it, they show the actual reason (usually a missing dependency).
Failed to load script client.lua.A file listed in fxmanifest.lua is missing.Upload the complete resource again. If web/build is missing, for example, use the release ZIP instead of the source code download.
SCRIPT ERROR: …An error in the resource's code at runtime.Check the resource's configuration (e.g. config.lua) and whether it fits your framework. If that does not help, contact the resource's developer.
Info

With ZapX Pass, AI analysis under Console tools reads your console log and suggests the cause and a fix.

Folder name, fxmanifest.lua and dependencies

  • Nested folder: If fxmanifest.lua is not directly inside the resource folder but one level deeper (e.g. resources/my-resource/my-resource-main/fxmanifest.lua), FiveM does not recognize the resource. Move the contents one level up. The Resource Installer does this automatically when you upload.
  • Dependencies: Which resources have to run first is listed under dependencies in fxmanifest.lua and in the resource's readme.
  • Narrow it down: Not sure which resource is the culprit? Put a # in front of the ensure lines you added last, restart, then re-enable them one by one.

A typical order in your server.cfg:

Code
ensure oxmysql
ensure ox_lib
ensure es_extended
ensure my-resource

Database errors (oxmysql)

oxmysql comes preinstalled on your FiveM server and connects your resources to the database. Two errors come up most often:

  • Unable to establish a connection to the database: oxmysql cannot reach the database. Error 1045 (or ER_ACCESS_DENIED_ERROR) means the credentials in your server.cfg are wrong. EHOSTUNREACH means the database server cannot be reached. How to fix the connection line is shown in FiveM: Fix Database Connection Issues.
  • Table '…' doesn't exist: The resource needs tables that do not exist yet because its SQL file was not imported. Import it with the SQL import in the Resource Installer or as described in FiveM: Importing an SQL File, then restart the server.

Server doesn't start at all

If the whole server stays offline, not just one resource, check these first:

txAdmin login doesn't work

You find the link, username and password for txAdmin in your server's dashboard in the txAdmin section. If the password no longer works, for example because you changed it in txAdmin itself, click Reset password there and confirm with Reset now. If the server is running, it restarts briefly. More on the setup: FiveM: txAdmin Setup.

Notice "A patch (bug fix) update is available for txAdmin"

This message is an update notice from txAdmin, not a start error. txAdmin ships with your server's FXServer version. You choose which version runs in the Configuration tab in the FXServer version card, see FiveM: Server Configuration.

Resource gets blocked

If the server reports that a resource contains prohibited logic, the security scan has disabled it. What this means and what you can do is explained in FiveM: 'Resource contains prohibited logic?'.

Still looking for the perfect resources for your server? Browse through our carefully curated list of the most popular and highly recommended resources to enhance your gameplay and give your server the finishing touch. Get inspired and find exactly the addons that fit your project.

  • ESX Framework – One of the oldest and most widely used roleplay frameworks with the largest script/community base.
  • QBCore Framework – Modern, well-structured RP framework with its own resource ecosystem and active community.
  • Qbox – Newer, more quality-assured fork of QBCore with TypeScript support.
  • ox_lib – Shared utility library (Overextended) used as a dependency by many other resources.
  • ox_inventory – Cross-framework inventory system (ESX/QBCore/Qbox), considered the current quasi-standard.
  • ox_target – Standalone “third-eye” targeting resource for interactions with objects, zones, and players.
  • ps-dispatch – Popular dispatch/emergency call system (Project Sloth) for police/EMS roleplay.

Conclusion

Finally, restart your server. The installed resource is loaded at the next full start. You have successfully installed a resource on your FiveM game server. You can also have small resources of your own created with the ZapX Resource Maker. You find more solutions in FiveM: Common Problems. If you have any further questions or need help, our support team is available daily! 🙂

Free tools

FiveM Tools

View all

FAQ

Frequently asked questions

With the FiveM Resource Installer in the Tools tab of your server dashboard: upload the ZIP, check the analysis, install. The installer places the resource in the right folder and adds it to your server.cfg.
ZIP archives up to 100 MB. Repackage RAR and 7z files as ZIP files first.
No. The installer lists included SQL files but only imports them when you click “Import into database”. Files up to 2 MB are supported.

Feedback

Was this article helpful?

Your feedback helps us prioritize and improve content.

0 of 0 people found this article helpful.

Personal support

Need more help than the guide provides?

Our ZAP-Hosting support team knows your product — briefly describe your issue and we'll help you personally.

Zappy knows this guide and answers you right in the chat.