What is Asset Escrow?
Asset Escrow is a system that allows developers to protect their code by preventing others from modifying or accessing certain scripts directly.
What asset types are currently supported in FiveM?
In this initial version, we focused on support for Lua 5.4, YFT, YDD, and YDR files. Support for JavaScript and C# runtimes are coming soon.
How do I create an escrowed asset for FiveM?
Important: To create an escrowed asset, you’ll need to ensure that your fxmanifest.lua file has the lua54 parameter set to ‘yes,’ as this is a requirement for escrowed resources.
For more information on setting your lua54 parameter, see the FiveM documentation on the resource manifest file: https://docs.fivem.net/docs/scripting-reference/resource-manifest/resource-manifest/
- Visit https://portal.cfx.re/assets
- Select Create new asset
- Choose Select File and type the name of your asset
- Upload your zipped asset and allow it to be processed for encryption
- The maximum file size for escrowed assets is 1GB
How do I update an escrowed asset for FiveM?
- Visit https://portal.cfx.re/assets
- Find the asset you wish to update
- Select Re-Upload next to the asset
- Upload your zipped asset and allow it to be processed for encryption
How do I download an escrowed asset for FiveM?
- Visit https://portal.cfx.re/assets
- Find the asset you want to download
- Select Download next to the asset
- The encrypted version of your asset, which can be used on any server that you own, will be downloaded
How do I delete an escrowed asset for FiveM?
- Visit https://portal.cfx.re/assets
- Find the asset you want to download
- Select Delete to the asset
- The escrowed asset will be deleted from your account
How do I sell my escrowed resource for FiveM on Tebex?
When creating a new package on Tebex, it will ask you to configure what your customers should receive upon purchasing this package. Select FiveM Asset and then choose the desired asset(s) from the dropdown list.
When a user buys access to the resource, they will receive an email with a download link and will also be able to download the resource directly to their own Cfx account.
Can I still obfuscate code in escrowed resources for FiveM?
Thanks to the asset escrow and encryption system, obfuscating code in escrowed resources is no longer required.
Can I sell subscription-based escrowed resources for FiveM?
You can create and update resources that require a subscription to access. If the subscription expires, the asset is removed from the subscribed users account and will no longer start on the user’s server.
What happens if an unauthorized FiveM server tries to run my resource?
The resource will not start, and an error stating ‘You lack the required entitlement’ will appear in the server console.
The server owner must purchase your content to be eligible to run your resource.
Is NUI supported in escrowed assets for FiveM?
Native User Interface (NUI) is not currently supported.
How can I select which files should be protected by the escrow system for FiveM?
You can tell the escrow system to ignore certain files by using the ‘escrow_ignore’ directive in your fxmanifest.lua like the example below:
escrow_ignore {
'script/code.lua', -- Only ignore one file
'stream/tuner.ydr', -- Works for any file, stream or code
'stream/*.yft', -- Ignore all .yft files in that folder
'stream/**/*.yft' -- Ignore all .yft files in any subfolder
} This can help you leave a few files fully accessible, such as configuration.
Can I transfer my escrowed assets to another user?
Transfer of created assets to another account is not supported, and escrowed assets can only be distributed via a Tebex package.