# Faq

Frequently asked questions about setup, usage, and troubleshooting.

<details>

<summary>The shop doesn't open when I press E</summary>

Make sure `Config.UseTarget` is `false`. Also verify the player is within 2.0 units of a `Config.PawnLocation` coord. Check your server console and F8 for Lua errors.

</details>

<details>

<summary>Items don't show in the UI</summary>

Item names in `Config.PawnItems` must exactly match the item's internal name in your inventory. Check for typos. Also make sure the player actually has those items in their inventory.

</details>

<details>

<summary>Images are not loading — only emojis show</summary>

Item images are loaded from `nui://qs-inventory/html/images/`. If you use a different inventory, the emoji fallback displays automatically — this is expected behavior, not an error.

</details>

<details>

<summary>The NPC doesn't spawn</summary>

Check the client console for errors. Verify the ped model `a_m_y_business_01` is available. If using a custom model, ensure it is streamed correctly in your resource.

</details>

<details>

<summary>Webhook not posting to Discord</summary>

Verify `Config.Webhook` is correct and the webhook is still active. Webhooks can be deleted accidentally from Discord. Test by sending a manual POST request to the URL.

</details>

<details>

<summary>Player was banned but shouldn't have been</summary>

Check the `bans` table for the `reason` field. `out of range` bans can occasionally happen with high latency. Remove the ban with a SQL DELETE and monitor.

</details>

<details>

<summary>How do I add more shop locations?</summary>

Add additional entries to `Config.PawnLocation`. Each entry needs `coords`, `length`, `width`, `heading`, `minZ`, and `maxZ`. The NPC position is set separately in `client.lua`.

</details>

<details>

<summary>Can I have different prices per player job or group?</summary>

Not out of the box. You would need to modify `server.lua` to fetch the player's job via `Player.PlayerData.job.name` and apply a price multiplier before the `totalPrice` calculation.

</details>


---

# 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://mohssins.gitbook.io/mohscriptsdocs/moh-pawnshop/faq.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.
