Install on txAdmin or a host
How to upload a FiveM resource to a txAdmin server or a game host: binary FTP or a zip, server.cfg, the panel's sv_licenseKey field, OneSync and restart.
This guide works for any FiveM resource when the server is not on your own computer: you manage it with txAdmin or it runs on a game host with a web panel. The steps are the ones in Install with Keymaster; this page covers what changes: how to upload the files, where to edit server.cfg and where the license key goes.
Follow the product's installation page too: it lists the dependencies and their order.
Before you start
| You need | Where |
|---|---|
| The resource zip | Your Keymaster → Granted Assets. See Buy and download. |
| Access to the server files | The panel's file manager, FTP/SFTP or the machine txAdmin runs on. |
Access to server.cfg | txAdmin's config editor or the panel's file manager. |
An sv_licenseKey from the account that bought the script | Keymaster → Server Keys. |
1. Upload the resource
The resource folder goes inside resources/ in the server data (the folder that holds server.cfg), or a subfolder such as resources/[eleven]/. Do not rename it.
From the panel's file manager
This is the safest way on a game host:
- Upload the
.zipas is toresources/. - Unzip it from the file manager itself.
- Make sure
fxmanifest.luasits directly inside the resource folder, not in a folder inside another folder. - Delete the
.zip.
Over FTP or SFTP
Unzip on your computer and upload the folder. Always use binary mode:
Warning
In ASCII mode, the FTP client changes the line endings of text files and the escrowed files get corrupted. In FileZilla: Transfer → Transfer type → Binary before uploading. If your panel can unzip files, uploading the zip and unzipping it there is safer.
With txAdmin on your own machine
Copy the resource folder into resources/ in the server data txAdmin uses. It is the same folder as the server.cfg you see in its editor.
2. Add the ensure
Open server.cfg:
- txAdmin: from its config editor (CFG Editor), in the web panel.
- Game host: from the panel's file manager.
Add the resource's ensure after its dependencies:
ensure oxmysql
ensure ox_lib
# your framework, your inventory and the rest of the dependencies
ensure resource-name
Save the file. If the console then says Could not find dependency, the order is wrong or something is missing: see Install with Keymaster.
3. Set the license key
The key must belong to the same Cfx.re account that bought the script.
- txAdmin: the key is in
server.cfg(sv_licenseKey "your_key"). Change it from the config editor. - Game host: check whether the panel has a dedicated field for the FiveM key (usually in the startup settings). If it does, put the key there: it can override the one in
server.cfg. If it does not, the key goes inserver.cfg.
Important
If you change the key in one place and not the other, the server may keep using the old one and show the "You lack the required entitlement" error.
4. OneSync and server version
- OneSync: if the resource needs it, enable it. txAdmin and many panels have a OneSync setting in the server configuration; if there is one, it wins. Otherwise, add
set onesync ontoserver.cfg. - Artifact: escrowed resources need 5181 or newer. Pick the version Cfx.re marks as recommended; game hosts usually have a version selector in the panel.
5. Database
If the resource uses a database, your server needs oxmysql connected to a MySQL or MariaDB database. On a game host, the connection details (host, user, password and database name) are in the panel. Most of our scripts create their own tables; if a product ships a .sql, import it from the panel's database manager (phpMyAdmin, for example) as its installation page explains.
6. Restart the whole server
Use the server restart button in txAdmin or the panel, and watch the console while it starts. The license is checked on start.
Warning
Do not start or restart a single resource live (ensure, restart or from txAdmin's resource list) if it ships its own models or maps (a stream/ folder): it can crash connected players. Do a full restart.
If something goes wrong
| What you see | Where to look |
|---|---|
You lack the required entitlement to use … | Fix "You lack the required entitlement" |
Could not find dependency … | Install with Keymaster |
| The resource needs OneSync | Install with Keymaster |
| The escrowed resource will not load or throws odd errors on load | Install with Keymaster |
If it still fails, open a ticket on our Discord and tell us which host you use. See Get support.