# Error parsing script (syntax error)

### ❌ Error parsing script (syntax error)

#### Error example

```
[script:op-garages] Error parsing script @op-crime/server/bossMenu.lua
[c-scripting-core] Failed to load script server/bossMenu.lua
```

#### What does this mean?

FiveM failed to load the script because the file is **corrupted, incomplete, or incompatible** with your server version.\
This is **not** a script bug — it’s almost always an environment or upload issue.

#### How to fix it

* If you’re using **FileZilla**, files may have been corrupted during transfer\
  → Use **WinSCP** or another FTP client
* **Do not upload the script file-by-file**\
  Upload the **.zip file as-is**, then extract it **directly on your VPS**
* Make sure your **server artifacts are up to date**\
  Minimum supported version: **4752**
  * Download updated artifacts
  * Or follow the official FiveM server update guide
* If the issue persists, **reinstall the script from scratch**


---

# 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://docs.otherplanet.dev/troubleshooting/error-parsing-script-syntax-error.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.
