
Everything on a FiveM server is a resource: jobs, cars, maps, HUDs, phones, even the framework itself. Adding one takes a few minutes once you know the steps: upload the folder, import its SQL, add one line to server.cfg and restart. Here's the full process, and how to fix the errors that stop a resource from starting.
Upload the resource's folder (the one with fxmanifest.lua directly inside) to your server's resources folder. If it came with a .sql file, import it into your database. Add ensure resource_name to server.cfg, after the resources it depends on, then restart from txAdmin. The name in server.cfg must match the folder name exactly.
A resource is a folder with an fxmanifest.lua file in it. The manifest tells the server which scripts and files the resource contains, and which other resources it needs. The usual kinds:
stream folderOlder resources may use a __resource.lua file instead. That format is deprecated, but most of those resources still load.
With txAdmin, your server's files live in a folder inside txData, named after the recipe you deployed, with server.cfg and the resources folder inside it. Folders in square brackets, like [cars], are categories: the server looks for resources inside them, but a category isn't a resource itself. A tidy server looks like this:
txData/YourServer/
├── server.cfg
└── resources/
├── [standalone]/
│ ├── oxmysql/
│ └── ox_lib/
├── [cars]/
│ └── my_car_pack/
│ ├── fxmanifest.lua
│ └── stream/
└── [scripts]/
└── my_script/
├── fxmanifest.lua
├── client.lua
└── server.luafxmanifest.lua directly inside it. Zips often add an extra level, like my_script-main/my_script/: upload the inner folder.-main or -master from the folder name. Other resources look for it by its proper name.Upload it with the file manager or over SFTP, into a category folder like resources/[scripts]. For big packs, upload the zip and unarchive it on the server: it's much faster than uploading thousands of small files.
If the resource came with a .sql file, it stores data in your database and the tables have to exist first. Connect to your database with a tool like HeidiSQL, using the database details from your game panel, then open the database your server uses and run the file. You'll find the database's name in the mysql_connection_string line of your server.cfg.
Some resources ship one SQL file per framework, or ask you to add items to your inventory's item list. Follow the README for those.
Open server.cfg and add an ensure line with the resource's folder name. Resources start in the order server.cfg lists them, so put dependencies first: the database resource, then libraries, then your framework, then the scripts that use them.
# database and libraries first
ensure oxmysql
ensure ox_lib
# then your framework (es_extended, qb-core or qbx_core)
ensure qbx_core
# then everything that uses it
ensure [cars]
ensure my_scriptensure [cars] starts every resource in a category, which is handy for cars and maps. Give scripts with dependencies a line of their own, so you control when they start.
Restart from txAdmin, then check the live console for red errors while the resource starts. To add a script without a full restart, run refresh in the live console (it finds new and changed resources), then ensure my_script. txAdmin's Resources page can start, stop and restart them too. Cars, clothing and maps are best added with a full restart, since players download streamed files when they join.
Many paid scripts from Tebex stores are protected by Cfx.re's asset escrow. They're encrypted, come with a .fxap file, and only run on a server whose license key belongs to the Cfx.re account that bought them.
server.cfg was made on a different Cfx.re account than the purchase. Use a key from the buying account, or transfer the asset to the key's account in the Cfx.re portal, then fully restart the server..fxap file. Most still leave their config file unencrypted, so you can change their settings.| The console says | What it means | The fix |
|---|---|---|
Couldn't find resource my_script | No resource folder has that name | Make the name in server.cfg match the folder, check it isn't nested one folder too deep, then run refresh |
Could not find dependency ox_lib for resource my_script | A resource it needs is missing | Install the dependency and ensure it before the resource |
No such export … in resource … | A resource it uses isn't running yet, or is the wrong version | Fix the order in server.cfg, or update the dependency |
You lack the required entitlement | An escrowed script on the wrong Cfx.re account | See paid scripts and escrow above |
Table '…' doesn't exist | The resource's SQL was never imported | Import its .sql file into your database |
attempt to index a nil value (global 'ESX') | A script for another framework, or one that started before its framework | Get the version for your framework, or fix the order |
Oversized assets can and WILL lead to streaming issues | A streamed model or texture is too big | Use an optimized version: too many cause missing textures |
resmon in your F8 console in game to see how much time each resource takes.Our FiveM server hosting comes with txAdmin pre-installed and a free MySQL/MariaDB database, so you can deploy an ESX, QBCore or Qbox recipe and start adding resources right away. Upload them with the file manager or SFTP, update your server artifacts in one click, and roll back with daily backups if a script breaks something. Plans start at $2.99/month, and the most popular 8 GB plan handles 60–100 players. New to it? Start with our txAdmin setup guide, and see what a FiveM server really costs once you add paid scripts.
No. Run refresh and then ensure the resource in the live console. Restart fully after big changes, and for cars, clothing and maps.
start only starts a resource. ensure starts it if it's stopped and restarts it if it's already running, which is why server.cfg files use it.
Usually, but other resources may call it by name, so keep the original name unless its README says otherwise.
Check the car pack has an ensure line, that the console showed no errors for it, and that you're spawning the model name from its README. Then restart and reconnect, since players only download new streamed files when they join.
FiveM servers from $2.99/month, with txAdmin, a free database, ESX, QBCore and Qbox support and free DDoS protection.