> For the complete documentation index, see [llms.txt](https://cylexdev.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cylexdev.gitbook.io/docs/fivem-escrow-errors.md).

# FiveM Escrow Errors

<details>

<summary><strong>Error parsing script... syntax error near &#x3C;\1></strong></summary>

#### **1. Avoid File Corruption During Transfer**

If you're using **FileZilla** for file transfer, there is a risk that the files could become corrupted during the process, which can lead to errors like script failure or incorrect functionality.

* **Do NOT use FileZilla**. It is known to occasionally corrupt files during transfer.
* **Use a more reliable FTP client**, such as **WinSCP**, to ensure your files are transferred safely and without corruption.
* After transferring the files, verify that all files are intact and compare them with the original files to ensure nothing has been altered.

***

#### **2. Properly Transfer Script Files**

Avoid transferring your script files one-by-one, as this can lead to issues with missing or incomplete files.

* **Upload the entire `.zip` file as-is** to your server.
* Once the `.zip` file is successfully transferred, **extract it directly on your VPS** to preserve file integrity.
* This method ensures that all files are kept together and reduces the risk of missing or corrupted files.

***

#### **3. Update Your Server Version**

If you're encountering errors related to outdated server versions, you may need to update your server to meet the minimum requirements.

* **Minimum required server version**: 4752.
* If you're running an older version, it's likely incompatible with some modern resources.

  You can download the latest server artifacts here.\
  For detailed instructions, refer to the official **FiveM guide** on how to update your server.

</details>

<details>

<summary><strong>Failed to verify protected resource</strong></summary>

If you're encountering issues with a protected resource, here are some additional steps to help you troubleshoot and resolve the problem:

***

#### **1. Restart Your Server**

Sometimes, a simple server restart can resolve the issue. Make sure to restart your server after making any changes to ensure everything loads correctly.

***

#### **2. Avoid File Corruption During Transfer (CRITICAL)**

File corruption is a common issue during script transfers, especially when using certain FTP clients like FileZilla. Corrupted files can cause the script to fail or produce errors. To prevent this:

* **DO NOT use FileZilla.** It is known to corrupt files during the transfer process.
* **USE a more reliable FTP client**, such as **WinSCP**, to upload your script files securely.
* After transferring the files, **verify that all files are intact** and compare them with the original files to ensure nothing has been altered or corrupted.

⚠️ *File corruption is a critical issue that can completely break the functionality of your script. Always take extra care during file transfers to avoid unnecessary errors.*

#### **3. Properly Transfer the Script to Your Server**

If you're transferring files manually:

* **Do NOT upload files one by one.** Instead, upload the entire `.zip` file as-is to your server's directory.
* Once the `.zip` file has been successfully transferred, extract it directly on your server or VPS to prevent missing or corrupted files.

***

#### **4. Ensure the `.fxap` File is Present**

The `.fxap` file is essential for the script to function properly.

* Navigate to the script's folder and confirm that the `.fxap` file is present.
* If it's missing, redownload the script from your **Keymaster account** and reinstall it.

</details>

<details>

<summary>Y<strong>ou lack the required entitlement</strong></summary>

#### **Resolving the "You lack the required entitlement to use" Error**

This issue occurs when FiveM cannot verify your entitlement for the resource.

***

#### **1. Restart Your Server**

If you purchased the script with your server on, you need to restart your server. \
After restarting, check if you get the error again, if the error persists, follow the steps below.

#### **2. Verify Your FiveM Account**

Ensure that you are logged into the correct FiveM Keymaster account used to purchase the script.

1. Visit [**https://keymaster.fivem.net**](https://keymaster.fivem.net).
2. Log in and navigate to the **Purchased Assets** section.
3. Confirm the script is listed under your purchases.

If you’re logged into the wrong account, switch to the correct one and restart your server.

***

#### **3. Check Your Server License Key**

Your FiveM server must be linked to the same Keymaster account where the script was purchased.

1. Log in to [**https://keymaster.fivem.net/servers**](https://keymaster.fivem.net/servers)
2. Ensure your server’s license key is active and tied to the correct Keymaster account.
3. If needed, generate a new key and update your `server.cfg` file:

   ```plaintext
   sv_licenseKey [your-new-license-key]
   ```

Restart your server after making this change.

***

#### **4. Confirm Script Installation**

Ensure the script is correctly installed in your `resources` folder and added to your `server.cfg` file.

1. Place the extracted script folder into your server's `resources` directory.
2. Open your `server.cfg` file and add:

   ```plaintext
   plaintextKodu kopyalaensure [script-folder-name]
   ```

   Replace `[script-folder-name]` with the exact name of the script folder.

***

#### **5. Check for Modifications or Unauthorized Use**

Entitlement verification will fail if:

* The script has been modified.
* The script has been shared or uploaded to unauthorized servers.

If this is the case, redownload the original script from your **Keymaster account** and reinstall it.

***

#### **6. Contact Support**

If the issue persists after following these steps:

1. Open a ticket in our **Support Portal** or join our **Discord**.
2. Provide your **Tebex Order ID** and a detailed description of the issue.

***

#### **Important Notes**

* This error may occur if your Keymaster account or server license key is incorrect. Double-check your credentials.
* Scripts purchased from unauthorized or third-party sources will not be supported.

We’re here to help ensure your script works smoothly. Thank you for your purchase!

</details>
