> For the complete documentation index, see [llms.txt](https://docs.kuzquality.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.kuzquality.com/general/common-issues.md).

# Common issues

Most common issues which can occur when using or installing FiveM Scripts

{% hint style="danger" %}
**Error parsing script / Failed to load script** ***Error parsing script @...lua in resource ...: @...lua:1: syntax error near '<\1>'***&#x20;
{% endhint %}

The script may be corrupt, try a clean reinstall. This may also be caused by your server artifacts being outdated. So make sure that you're using the latest recommended build or newer.

When installing a resource, make sure to **not** use FileZilla. As it has a high chance of corrupting an escrowed script. Instead we recommend using WinSCP

{% hint style="danger" %}
**You lack the required entitlement to use**
{% endhint %}

As a first step, make sure to restart your server after first installing your resource. If this error persists, it means that the script license is not on the same [keymaster](https://keymaster.fivem.net/) account as your FiveM server.&#x20;

If the asset is on a different account, you may use the keymaster transfer feature to transfer the asset to the same keymaster account as your server license is using.

{% hint style="danger" %}
**Failed to verify protected resource**&#x20;
{% endhint %}

Files were possibly corrupted during transfer. Ensure hidden files are copied; the .fxap file in a protected resource must be included. Some FTP programs may skip these files.

{% hint style="danger" %}
**No such export \* in resource \***
{% endhint %}

This error mostly occurs when a resource is trying to call an export function of another resource. Please ensure that the script mentioned at the end of the error message is started before the script throwing the error

{% hint style="danger" %}
**Attempt to index a nil value (global 'QBCore')**
{% endhint %}

Make sure that `qb-core` is started before the script. Additionally verify that you have enabled the correct framework in the `config.lua` file

{% hint style="danger" %}
**Attempt to call a nil value (field "AddPlayerItem")**

**Attempt to call a nil value (field "RemovePlayerItem")**
{% endhint %}

Make sure that you've enabled the correct framework in the `config.lua` file

{% hint style="danger" %}
**Resource \* used the getSharedObject Event, this event no longer exists!**
{% endhint %}

Open the `config.lua` file and toggle the `UseNewExport` option under the esx settings
