# FAQ / Troubleshooting

<mark style="color:yellow;">**Q: The script can’t detect ESX/QB.**</mark>\
**A:** Ensure that **es\_extended** or **qb-core** is started before this resource. If auto-detection fails, manually set `Config.Framework` to either `"esx"` or `"qb"` in your configuration.

***

<mark style="color:yellow;">**Q: Players cannot purchase items—even when they have enough money.**</mark>\
**A:** Verify that the player's cash or black money is being correctly checked. Ensure that your framework's money methods are properly integrated, and that the price ranges and payment method (cash or black money) are correctly defined in `Config.Price` and `Config.PaymentMethods`.

***

<mark style="color:yellow;">**Q: The shop does not open when I press the interaction key.**</mark>\
**A:** Confirm you are within the specified interaction distance of a shop location as defined in `Config.Shops`. Also, ensure that your keybindings aren’t conflicting with other resources and that `Config.ShopText` is correctly set up to display the prompt.

***

<mark style="color:yellow;">**Q: Item prices are not updating or Discord notifications are not sent.**</mark>\
**A:** Make sure that the function `FinalizeItemPrices()` is being called on server startup and that your `Config.Discord.Webhook` is a valid URL. Check your server console for any HTTP or JSON errors.

***

<mark style="color:yellow;">**Q: The shop appears closed outside of operating hours.**</mark>\
**A:** Verify that your `Config.OpenHour` and `Config.CloseHour` are set to your desired times, and confirm that your server’s system time is accurate. If a player tries to access the shop outside these hours, they will receive the closed notification.

***
