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

# Troubleshooting

The most common problems and how to fix them.

### No such export useBadge in resource ...

The export in `items.lua` must be exactly `FC-LspdBadge.useBadge` and the resource folder must be called `FC-LspdBadge`. Restart ox\_inventory (or the whole server) after editing `items.lua`.

### I can't see the option on the ped

Your job isn't in `Config.Jobs` or your grade is lower than the one set there. Also make sure ox\_target starts before FC-LspdBadge.

### "screenshot-basic is not running"

screenshot-basic has to be started before FC-LspdBadge in your `server.cfg`.

### "No framework found" in the console

Start your framework before FC-LspdBadge, or set `Config.Framework` by hand.

### The photo is badly framed

Play with `camDistance`, `camHeight`, `aimOffset` and `fov` in `Config.Photo`, or set a `photoSpot` in front of a plain wall.

### The item has no picture in the inventory

`lspd_badge.png` isn't in `ox_inventory/web/images/`, or the file name doesn't match the item name.

### The texts are in the wrong language

`Config.Locale` has to match a file name inside `locales/`. If it doesn't, the console shows a warning and English is used.

### The badge says it doesn't match any registered officer

That registration was deleted with `/badgedelete`. The officer has to register again at the ped.


---

# 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, and the optional `goal` query parameter:

```
GET https://docs.fivemcustoms.com/fc-lspdbadge/troubleshooting.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
