> ## Documentation Index
> Fetch the complete documentation index at: https://docs.jaksam-scripts.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Escrow errors

> Solutions for common errors caused by the FiveM asset escrow system

<Danger>
  If the scripts work and as soon as you restart the server a few times they stop working, then you have a virus in your server. We can't help you in that case.
</Danger>

Here you will find the solutions to common errors when using jaksam's scripts due to the FiveM Escrow system.

To verify if your error is caused by the FiveM asset escrow, you can simply restart the script and check **both** in **F8 console** and in **server console** (txAdmin) for errors.

## How to know if my error is caused by the FiveM escrow system?

To understand if something in a script is not working because of the FiveM asset escrow system, do this:

<Steps>
  <Step title="Restart the script">
    Restart the script causing issues, using the command `ensure your_script_name` in txAdmin console or restarting the script the way you usually do.

    <Frame caption="in-game F8 restart example">
      <img src="https://mintcdn.com/jaksam/cS_rA3IcGZ7NTj0G/images/f8_restart.gif?s=6f7bbe47fd16c57d889826d66bd0be49" alt="in-game F8 restart example" width="1904" height="340" data-path="images/f8_restart.gif" />
    </Frame>

    <Frame caption="server console restart example">
      <img src="https://mintcdn.com/jaksam/cS_rA3IcGZ7NTj0G/images/server_restart.gif?s=b5b0d3be3f2c9bc4d747138af0930823" alt="server console restart example" width="1353" height="743" data-path="images/server_restart.gif" />
    </Frame>
  </Step>

  <Step title="Check both consoles">
    Check the txAdmin console (server console) **and** the F8 in-game console, looking for errors.
  </Step>

  <Step title="Compare with known errors">
    If there is any error similar to the ones in the examples below, your issue **is caused by the FiveM asset escrow system**.
  </Step>
</Steps>

### Examples of errors caused by the FiveM escrow system

<Frame caption="Solution: see Error parsing script below">
  <img src="https://mintcdn.com/jaksam/cS_rA3IcGZ7NTj0G/images/error_parsing.png?fit=max&auto=format&n=cS_rA3IcGZ7NTj0G&q=85&s=f99a22d5b41cdb549c782d9c189b682d" alt="Escrow error example" width="1770" height="187" data-path="images/error_parsing.png" />
</Frame>

<Frame caption="Solution: see Error parsing script below">
  <img src="https://mintcdn.com/jaksam/cS_rA3IcGZ7NTj0G/images/error_parsing_2.png?fit=max&auto=format&n=cS_rA3IcGZ7NTj0G&q=85&s=4f7380f108ad281401692198133aa6eb" alt="Escrow error example" width="1914" height="266" data-path="images/error_parsing_2.png" />
</Frame>

<Frame caption="Solution: see Failed to verify protected resource below">
  <img src="https://mintcdn.com/jaksam/cS_rA3IcGZ7NTj0G/images/failed_to_verify_protected_resource.png?fit=max&auto=format&n=cS_rA3IcGZ7NTj0G&q=85&s=1323c3b346fe9339c2e8a870fd97dfb9" alt="Escrow error example" width="429" height="37" data-path="images/failed_to_verify_protected_resource.png" />
</Frame>

<Frame caption="Solution: see You lack the required entitlement below">
  <img src="https://mintcdn.com/jaksam/cS_rA3IcGZ7NTj0G/images/lack_entitlement.jpg?fit=max&auto=format&n=cS_rA3IcGZ7NTj0G&q=85&s=b98039b6eb0b3d6a8e5999491dc75958" alt="Escrow error example" width="787" height="44" data-path="images/lack_entitlement.jpg" />
</Frame>

## Common causes

These are the most frequent causes across **all** escrow errors below — check these first before going into the error-specific sections:

* You're transferring the script file by file to your VPS instead of uploading the **.zip** and extracting it **after** it's already on the VPS
* You're using **FileZilla** (or your host uses it) — use [WinSCP](https://winscp.net/eng/download.php) instead
* The download was corrupted — try a clean, fresh install
* You have a virus on your server modifying script files (very likely if nothing else fixes it)

Other general requirements:

* **Minimum** server artifacts version 4752
* OneSync has to be enabled
* Use the correct license key, generated by the same account you used to download the script

<Tip>
  It's **strongly** suggested to read all sections below carefully, since these fixes are tested by many users and are supposed to work. If none of them helps, see [What to do if nothing is fixing the errors](#what-to-do-if-nothing-is-fixing-the-errors).
</Tip>

You can find all of jaksam's scripts [here](https://jaksam1074-fivem-scripts.tebex.io/).

<AccordionGroup>
  <Accordion title="Error parsing script ... <\1>">
    Error message **example**:

    ```text theme={null}
    Error parsing script @jobs_creator/server/markers/job_shop.lua in resource jobs_creator: @jobs_creator/server/markers/job_shop.lua:1: syntax error near '<\1>'
    ```

    ### Possible reasons

    In addition to the [common causes](#common-causes) above, this error can also happen if:

    * You may have to clear the **server** caches

    ### How to verify my server version?

    To verify what server version your server is currently using, use the following command in your FiveM server console: `version`

    **Example**

    <Frame>
      <img src="https://mintcdn.com/jaksam/cS_rA3IcGZ7NTj0G/images/version_example.jpg?fit=max&auto=format&n=cS_rA3IcGZ7NTj0G&q=85&s=15118f447ed7b8df4700bc1e680e39ab" alt="version command example" width="975" height="518" data-path="images/version_example.jpg" />
    </Frame>

    ### How to update my server version?

    To update your server version, download the new [server artifacts](https://runtime.fivem.net/artifacts/fivem/build_server_windows/master/) and extract and replace them in your server folder.

    This is the **official** [FiveM guide](https://docs.fivem.net/docs/server-manual/setting-up-a-server/) to update your server.

    ### My server version is already updated, but I have the error

    If you have the error even though your server version is not the issue, check [Failed to verify protected resource](#failed-to-verify-protected-resource) below.
  </Accordion>

  <Accordion title="Failed to verify protected resource">
    Error message example:

    ```text theme={null}
    [svadhesive] Failed to verify protected resource jobs_creator
    ```

    ### Possible reasons

    In addition to the [common causes](#common-causes) above, this error can also happen if:

    * You don't have an `.fxap` file in the script folder

    ### Solutions

    <Steps>
      <Step title="Re-download the script">
        Download the script again from [FiveM Portal](https://portal.cfx.re/).
      </Step>

      <Step title="Upload with WinSCP">
        Upload the script using [WinSCP](https://winscp.net/eng/download.php) *instead of* FileZilla.
      </Step>

      <Step title="Restart the server">
        Restart the server.
      </Step>
    </Steps>
  </Accordion>

  <Accordion title="You lack the required entitlement">
    Error message example:

    ```text theme={null}
    You lack the required entitlement to use script_name
    ```

    ### Reason

    All scripts using the FiveM escrow system are linked to your FiveM account (the account you used on Tebex).

    In order to work, the script(s) require a server using a server key created by the same FiveM account you used on Tebex.

    ### What is a server key?

    * The server key is generated in [FiveM Portal](https://portal.cfx.re/)
    * The server key is **not** a script key
    * A FiveM server can use only **1** server key

    **Example of a server key in server.cfg**

    ```text theme={null}
    sv_licenseKey "27ztq5g2pcjua67q4xywujkuzh5m7j4a"
    ```

    ### How to verify my server key?

    To verify what server key your server is currently using, use the following command in your FiveM server console: `sv_licenseKey`

    **Example:**

    <Frame>
      <img src="https://mintcdn.com/jaksam/cS_rA3IcGZ7NTj0G/images/example_server_key.jpg?fit=max&auto=format&n=cS_rA3IcGZ7NTj0G&q=85&s=22531cda4dfd121721f5efa0cfc12e67" alt="sv_licenseKey example" width="980" height="517" data-path="images/example_server_key.jpg" />
    </Frame>

    ### How to verify if I am using the correct server key?

    <Steps>
      <Step title="Get your server key">
        Use the command `sv_licenseKey` in your FiveM server console.
      </Step>

      <Step title="Note the server key">
        Take note of the **server key** you are currently using.
      </Step>

      <Step title="Open FiveM keymaster">
        Go to [FiveM Portal](https://portal.cfx.re/).
      </Step>

      <Step title="Verify script ownership">
        Verify if the account you are logged in with on [FiveM Portal](https://portal.cfx.re/) owns the script(s) you are trying to use. If the script is not there, it means you used a different account on Tebex, or you have transferred the script to another account.

        **Example with** [**Jobs Creator script**](https://forum.cfx.re/t/jobs-creator-4-6-esx-in-game-job-creation-menu-without-server-restart/2667762)

        <Frame>
          <img src="https://mintcdn.com/jaksam/cS_rA3IcGZ7NTj0G/images/example_purchased_assets.jpg?fit=max&auto=format&n=cS_rA3IcGZ7NTj0G&q=85&s=27eafe0c51a67efe3918f6c4a03a89ec" alt="Jobs Creator ownership example" width="1159" height="814" data-path="images/example_purchased_assets.jpg" />
        </Frame>
      </Step>

      <Step title="Verify the server key owner">
        If the account you are using on [FiveM Portal](https://portal.cfx.re/) owns the script(s), verify if the **server key** your server is using is generated by the same account.

        <Frame>
          <img src="https://mintcdn.com/jaksam/cS_rA3IcGZ7NTj0G/images/keymaster_keys_list.jpg?fit=max&auto=format&n=cS_rA3IcGZ7NTj0G&q=85&s=cbaa82b79e90aae5904acb304335d4cd" alt="Server key owner example" width="1216" height="867" data-path="images/keymaster_keys_list.jpg" />
        </Frame>
      </Step>
    </Steps>

    ### My server key is generated by someone else that's not me, what can I do?

    You have 2 options:

    * Generate a key from your account and use it
    * Transfer the script ownership to the other account

    ### How to transfer the script to another account?

    To transfer the script to another account, head to:

    [FiveM Portal](https://portal.cfx.re/) → \*\*Assets \*\*tab → **Transfer to another account** red button

    <Warning>
      cfx.re decided that scripts can be transferred only 1 time, so you won't be able to transfer the script again.
    </Warning>

    ### ZAP-Hosting server key

    If you are using a Zap-Hosting server, you do **not** have to enter your server key in server.cfg, but directly on their website.

    [Here is the official ZAP Hosting guide for it](https://zap-hosting.com/guides/docs/en/fivem_licensekey/).

    **Example screenshot:**

    <Frame>
      <img src="https://mintcdn.com/jaksam/cS_rA3IcGZ7NTj0G/images/zap_hosting_custom_key.png?fit=max&auto=format&n=cS_rA3IcGZ7NTj0G&q=85&s=96d0d67985d73e2d03f41a19c6a866fc" alt="ZAP Hosting license key example" width="1264" height="595" data-path="images/zap_hosting_custom_key.png" />
    </Frame>
  </Accordion>

  <Accordion title="What to do if nothing is fixing the errors">
    ### I followed all steps but nothing is working, what can I do?

    If you have followed all steps, then you just have a virus in your server. Try creating a clean server with only the default framework scripts and jaksam's scripts.

    ### How to verify if I have a virus in my server?

    Open the file mentioned by jaksam's script with **notepad**, and scroll down to the bottom. If there is partially readable code (for example `local...`), that's a virus added by something else, because normally the entire file would be encrypted. In this case, you'll have to solve that issue before being able to use any script.
  </Accordion>
</AccordionGroup>


## Related topics

- [Troubleshooting](/jaksams-scripts/troubleshooting.md)
- [Common FAQ](/jaksams-scripts/common-faq.md)
- [Register item](/jaksam-inventory/functions/server/register-item.md)
- [How to enable Discord features](/easy-allowlist/how-to-enable-discord-features.md)
- [FAQ](/jobs-creator/faq.md)
