Install with Keymaster
How to install an escrowed FiveM resource from Cfx.re Keymaster: sv_licenseKey, ensure order, artifacts and fixes for 'You lack the required entitlement'.
These are the steps every script shares. Each one also has its own installation page with its dependencies, items and exact server.cfg order: follow it alongside this one.
Before you start
| You need | Why |
|---|---|
| The zip downloaded from your Keymaster | See Buy and download. |
A license key (sv_licenseKey) from the same Cfx.re account that bought the script | The server uses that key to check the resource is yours. |
| Recent server artifacts (5181 or newer; ideally the current recommended one) | 5181 is the minimum the Cfx.re protection system needs. Below that, the resource will not start. See Use the recommended artifact. |
| The script's dependencies | Listed on each product's requirements page. |
1. Unzip into resources
Unzip the file and copy the resource folder into resources/ (or the subfolder you use, for example resources/[eleven]/).
If your server is on a game host or you manage it with txAdmin, upload the files as explained in Install on txAdmin or a host. Over FTP, always use binary mode (see Uploading files over FTP).
Important
Do not rename the folder. Many scripts refer to themselves by name in events, the interface and saved data; renaming the folder breaks them. Keep the name from the zip.
2. Install the dependencies
Start whatever the script needs first (ox_lib, oxmysql, your framework, your inventory…). The exact list is in each product's requirements.
3. Add it to server.cfg
The script's ensure goes after its dependencies. Otherwise the console says Could not find dependency (see below).
ensure oxmysql
ensure ox_lib
# your framework, your inventory and the rest of the script's dependencies
ensure resource-name
If other scripts of yours depend on this one, their ensure goes after it.
4. Database
Most of our scripts create their own tables the first time they start. If a product ships a .sql you have to import by hand, its installation page says so. Back up your database before importing anything.
5. Items and other files you copy
Some scripts ship ox_inventory items (with their images) or patches for other resources. Those files are left unencrypted so you can copy them. Each product's installation page explains where they go.
6. Restart the whole server
Start or restart the full server and watch the server console. The license is checked on start, so after changing the key an ensure of the resource is not enough.
Warning
Scripts that load their own models (a stream/ folder) should not be restarted live with players online: it can crash them or leave them stuck loading. Install and update them with a full server restart.
The server license key
Keys are created and listed under Keymaster → Server Keys. The key must be created with the same Cfx.re account you bought the script with on Tebex. If your server uses a key from another account, either create a new key on the account that bought the script, or buy with the account that owns the key. If you need to move the license to another account, open a ticket (see Licenses and escrow).
Where it goes depends on how you start the server.
In server.cfg
If you start the server yourself, it goes in your server.cfg:
sv_licenseKey "your_key"
With txAdmin
txAdmin writes the key into server.cfg when you create the server. To change it, edit that server.cfg from txAdmin's config editor and restart the server.
With a game host panel
Many hosts have a dedicated field for the FiveM key in their panel (in the startup settings). If there is one, put the key there: the panel passes it on start and it can override the line in server.cfg. If you change the key in one place and not the other, the server may keep using the old one. See Install on txAdmin or a host.
Use the recommended artifact
The artifact is the FiveM server (FXServer) version. The minimum for escrowed resources is 5181, but do not stop there: use the version Cfx.re marks as recommended on its artifacts page. On a game host, there is usually a version selector in the panel.
Tip
The artifact version is printed in the console when the server starts. Include it if you open a ticket.
Uploading files over FTP
If you upload the resource over FTP, use binary mode. In ASCII mode the FTP client changes the line endings of text files, and the escrowed files get corrupted: the resource stops loading even though the license is fine.
- FileZilla: Transfer → Transfer type → Binary before uploading. In auto mode it may treat
.luafiles as text. - Alternative: upload the
.zipas is and unzip it on the server, from the panel's file manager or the command line.
Startup errors
You lack the required entitlement to use <resource>
If the console shows something like this on start:
You lack the required entitlement to use eleven-phone
(with whichever resource name), the server is not allowed to run the escrowed resource. Check in this order:
| Cause | Fix |
|---|---|
The sv_licenseKey belongs to another Cfx.re account | Create the key on the account that bought the script, or buy with the account that owns the key. |
The host panel uses a different key from the one in server.cfg | Put the right key in the panel field. See With a game host panel. |
| Someone else, or another account, downloaded the zip | Download the resource from your own Keymaster. |
| You have not restarted the server since buying or changing the key | Restart the whole server (an ensure is not enough). |
| The purchase has not been granted yet | Check the script is listed under Keymaster → Granted Assets for that account. If you just bought it, wait a few minutes and restart. |
| It is a subscription and it is not active | If you stop paying a monthly plan, the resource stops starting. Renew it. |
| Artifact older than 5181 | Update your server artifacts. |
The full guide, with every step, is in Fix "You lack the required entitlement".
Could not find dependency <x> for resource <y>
Resource <y> needs <x> and the server cannot find it running. Check:
- The dependency is installed in
resources/with the exact name shown in the message. - Its
ensurecomes before the script's inserver.cfg. - The dependency starts without errors of its own: look further up in the console for a load failure.
Each script's dependencies are listed on the requirements or installation page of its documentation.
Note
If the dependency in the message starts with a slash (for example /onesync or /server:5181), it is not a missing resource: it is a server requirement. /onesync asks for OneSync to be enabled (see the next section) and /server:… asks for an artifact at or above that number.
The resource needs OneSync
Some scripts (for example Surfing or Cable Car) need OneSync, FiveM's sync system. To enable it:
With
server.cfg: add this line and restart the whole server.set onesync onWith txAdmin or a game host panel: look for the OneSync setting in the server configuration (in txAdmin, under the FXServer settings). If the panel has that setting, it wins: set it to on.
The escrowed resource will not load
If there is no entitlement error but the resource does not start, or the console shows errors while loading its files (for example, that a protected resource could not be verified, or a Lua syntax error pointing at unreadable characters), the escrowed files are not as they came out of Keymaster:
| Cause | Fix |
|---|---|
| You edited or replaced escrowed files | Download the package again. Only the open files are editable (config.lua, translations and whatever each product lists). See Licenses and escrow. |
| You uploaded the files over FTP in ASCII mode | Upload them again in binary mode, or upload the zip and unzip it on the server. See Uploading files over FTP. |
| You mixed files from two versions | Replace the whole folder with the one from a single download. |
| You renamed the folder | Give it back its original name. |
| The zip was extracted badly (a folder inside another folder) | Make sure fxmanifest.lua sits directly inside the resource folder, not one level deeper. |
| The artifact is old | Use at least 5181, and ideally the recommended one. See Use the recommended artifact. |
| A dependency is missing or starts later | Check your server.cfg order and the product's requirements. |
If everything looks right and it still fails, open a ticket on our Discord with a screenshot of the error. See Get support.