Guides

How to Add Scripts and Resources to Your FiveM Server

SkailarHost Team
November 15, 2026
7 min read
How to Add Scripts and Resources to Your FiveM Server

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.

TL;DR

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.

What is a FiveM resource?

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:

  • Scripts: jobs, shops, phones, HUDs and anything else written in Lua, JavaScript or C#
  • Maps and MLOs: interiors and map edits, with their files in a stream folder
  • Vehicles and clothing: add-on cars, EUP and clothing packs
  • Loading screens and UIs: web pages the game shows to players

Older resources may use a __resource.lua file instead. That format is deprecated, but most of those resources still load.

Where resources go

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.lua

How to add a resource, step by step

1. Download it and check the folder

  • Find the right folder. The folder you upload must have fxmanifest.lua directly inside it. Zips often add an extra level, like my_script-main/my_script/: upload the inner folder.
  • Download releases, not source code. On GitHub, use the Releases page instead of the green Code button. Popular resources like ox_lib have a web interface that has to be built first, and the release zip comes ready to use.
  • Use the real name. Remove -main or -master from the folder name. Other resources look for it by its proper name.
  • Read the README. It tells you which framework the script is for (ESX, QBCore, Qbox or standalone), what it depends on and whether it needs SQL.

2. Upload it to your resources folder

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.

3. Import its SQL file

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.

4. Add it to server.cfg

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_script

ensure [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.

5. Restart the server

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.

Paid scripts and escrow

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.

  • "You lack the required entitlement" means the license key in your 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.
  • Upload escrowed resources exactly as they come, including the .fxap file. Most still leave their config file unencrypted, so you can change their settings.
  • Never use leaked versions. They break Cfx.re's terms, often hide backdoors that give strangers control of your server, and never get updates.

Common errors and how to fix them

The console saysWhat it meansThe fix
Couldn't find resource my_scriptNo resource folder has that nameMake 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_scriptA resource it needs is missingInstall 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 versionFix the order in server.cfg, or update the dependency
You lack the required entitlementAn escrowed script on the wrong Cfx.re accountSee paid scripts and escrow above
Table '…' doesn't existThe resource's SQL was never importedImport 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 frameworkGet the version for your framework, or fix the order
Oversized assets can and WILL lead to streaming issuesA streamed model or texture is too bigUse an optimized version: too many cause missing textures

Keep your server fast

  • Remove what you don't use. Every resource adds startup time and memory, even if nobody uses it.
  • Check what each script costs. Type resmon in your F8 console in game to see how much time each resource takes.
  • Add scripts one at a time, ideally when the server is quiet, so you know which one caused a problem.
  • Back up before big changes, especially framework updates and SQL imports.

FiveM hosting ready for your scripts

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.

FAQ

Do I have to restart the server for every new script?

No. Run refresh and then ensure the resource in the live console. Restart fully after big changes, and for cars, clothing and maps.

What's the difference between ensure and start?

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.

Can I rename a resource folder?

Usually, but other resources may call it by name, so keep the original name unless its README says otherwise.

Why don't my new cars show up?

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.

Build your FiveM server

FiveM servers from $2.99/month, with txAdmin, a free database, ESX, QBCore and Qbox support and free DDoS protection.

Tags

#FiveM#Scripts#Resources#txAdmin#Guides

Related Articles