Getting Started

FiveM Asset Escrow

How Cfx.re Asset Escrow protects our scripts and what you can edit.

NX Scripts resources are protected with Cfx.re Asset Escrow, FiveM's official system for protecting paid scripts. It stops leaks and resales, and it means only servers that own a license can run the script.

How escrow works

When a script is escrowed, its Lua code is encrypted before it reaches you. The encrypted files can only be decrypted by a FiveM server whose license key belongs to a Cfx.re account that owns the script. When your server starts, it checks which assets your account owns and unlocks only those.

StepWhat happens
You buy the scriptIt's granted to the Cfx.re account you logged in with at checkout.
You download itThe encrypted resource is downloaded from the Cfx.re Portal.
Your server startsFiveM checks your server's license key and loads the assets owned by that account.

What you can and can't edit

Open files

Files listed under escrow_ignore in the fxmanifest.lua stay readable, so you can edit them freely. For our scripts this is always the config, and sometimes extra files such as locales or bridge files for your framework.

fxmanifest.lua
escrow_ignore 'config.lua'

Encrypted files

Everything else (the client and server Lua code) is encrypted. You can't read or change it, and editing it will break the resource. If you need something that isn't configurable, ask us on Discord. We regularly add new options based on feedback.

UI files (HTML, CSS, JS, images and fonts) aren't encrypted by escrow, but we still recommend changing the look through the config where possible so updates don't wipe your changes.

Setting up your server

For escrowed resources to load, your server must meet these requirements:

  • Your sv_licenseKey was created on the same Cfx.re account that owns the script.
  • Your server artifacts are up to date. Use the latest recommended build.
  • The resource files were uploaded unchanged, straight from the downloaded zip.

Creating a license key

  1. Open Server Registration Keys

    In the Cfx.re Portal, go to Servers → Registration Keys while logged into the account that owns the script.

  2. Generate a key

    Create a new key and enter your server's IP address.

  3. Add it to server.cfg

    server.cfg
    sv_licenseKey "your_key_here"
  4. Restart the server

    Owned assets are checked when the server starts, so do a full restart after buying something new.

Running a server for someone else?

The license key and the purchase must be on the same account. If you're a developer setting up a server owned by someone else, either the server's key must come from the buyer's account, or the owner of the license key must buy the script.

Rules

Your purchase gives you a license to use the script on servers you own. You may not:

  • Share, resell or re-upload the script or its files.
  • Try to decrypt, deobfuscate or bypass the escrow protection.
  • Use the script on servers whose license key belongs to another account.

Breaking these rules violates our Terms of Service and the Cfx.re Creator Terms, and can lead to your license being revoked.

Getting an error? See Escrow Errors.