# Common Issues

<details>

<summary>Attempt to index a function value (field 'dui')</summary>

You need to update your ox\_lib to the newest available version.

</details>

***

<details>

<summary>I can't release player while escorting or carrying</summary>

To set up your server for our police job, please [click here](/piotreq-scripts/assets-and-guides/police-job/server-setup.md) and follow the listed steps. If issues persist, open a ticket on our Discord and send your `ox_target` or `qb-target` information.

</details>

***

<details>

<summary>[ERROR] SET FIVEMANAGE API KEY IN SERVER CONFIG</summary>

Ensure the Fivemanage SDK is installed. If not, refer to this [documentation](https://docs.fivemanage.com/sdk/fivem/install). If you have the SDK but you don't have an account, follow these steps:

1. Go to the Fivemanage documentation.
2. Create an account by following the registration process.
3. Generate a token.
4. Add the token to your `server.cfg` file.

If you need help, [click here](/piotreq-scripts/assets-and-guides/police-job/server-setup.md#five-manage-api-key) and follow the listed steps.

</details>

***

<details>

<summary>I can still cuff cuffed player!</summary>

The issue appears because your server doesn't properly read statebags. There are two possible solutions:

1. Reinstall the server artifacts and check if it works.
2. If not, you may need to reinstall your entire server from your hosting panel or VPS.

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://piotreq-scripts.gitbook.io/piotreq-scripts/assets-and-guides/police-job/common-issues.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.
