# Error: syntax error near '<\1>'

### Why this happens

There are two most common reasons for this error:

#### 1. The resource files were corrupted during transfer

This usually happens when uploading the script with tools or methods that damage protected files.

Most common causes:

* using **FileZilla**
* moving files **file by file** through **Remote Desktop**
* copying the extracted resource manually instead of uploading the `.zip` and extracting it directly on the server

Protected resources are sensitive to transfer issues, so even a small change in file structure can break them.

***

#### 2. Your server artifacts are outdated

This error may also appear if your server version is too old to properly run the resource.

Make sure your server artifacts are **4752 or higher**.

***

### How to fix it

Follow these steps carefully:

#### Update your server artifacts

Make sure your server is running at least **artifact version 4752** or newer.

If possible, use the **latest recommended artifacts**.

***

#### Avoid FileZilla

Do **not** use **FileZilla** for protected resources if possible, as it may corrupt escrowed files during upload.

Use **WinSCP** instead.

***

#### Do not move files one by one through Remote Desktop

If you are using Remote Desktop, do **not** drag and drop the resource folder file by file.

Instead:

1. upload the `.zip` archive to the server
2. extract it directly on the server
3. use the extracted files from there

This helps avoid file corruption.

***

#### Re-upload the resource

After updating your server:

1. delete the old resource files
2. download the script again
3. upload it using **WinSCP**
4. make a **fresh install**

***

### If you must use FileZilla

If you are using FileZilla, try re-uploading the whole resource in **binary mode**.

#### Binary transfer mode

Make sure FileZilla is set to **Binary transfer mode** before uploading the files.

Even with that, **WinSCP is still recommended** for protected resources.

***

### How can I check my server version?

Write the following command in your server console:

```txt
version
```

This will show your current artifact version.

***

### How to update?

#### Windows

Please check the update video or guide provided for your server setup.

If you are using txAdmin or a standard FiveM server setup, update the server artifacts to the latest recommended version and restart the server.

***

### Recommended checklist

Before contacting support, make sure you have done all of the following:

* updated server artifacts to **4752 or higher**
* restarted the server
* re-downloaded the resource
* uploaded it again with **WinSCP**
* avoided **FileZilla**
* avoided moving files **file by file**
* uploaded the `.zip` and extracted it directly on the server
* made a **fresh install**

***

### Related errors

If the issue still appears, you may also encounter related errors such as:

* `Error parsing`
* `Failed to load`
* `syntax error near 1`
* `Failed to verify protected resource`

These usually also indicate corrupted escrow/protected files.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mskscripts.gitbook.io/mskscripts/errors/error-syntax-error-near-less-than-1-greater-than.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
