> For the complete documentation index, see [llms.txt](https://risk-scripts.gitbook.io/risk-scripts/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://risk-scripts.gitbook.io/risk-scripts/scripts/weapon-market/usage.md).

# Usage

* **Approaching the Shop:**\
  When a player is near a shop location (defined in <mark style="color:yellow;">`Config.Shops`</mark>), a help prompt appears showing <mark style="color:yellow;">`Config.ShopText`</mark>.\
  Pressing the interaction key (usually **E**) will trigger the shop UI.
* **Purchasing Items:**\
  Within the shop UI, players can browse items by category (as defined by <mark style="color:yellow;">`Config.CategoryOrder`</mark> and <mark style="color:yellow;">`Config.ShopItems`</mark>).\
  They can choose to pay either by cash or bank card. The script uses framework-specific methods (ESX or QBCore) to check funds and process the purchase.
* **Custom Notifications:**\
  If custom notification functions are defined in <mark style="color:yellow;">`Config.HelpNotifyFunction`</mark> and <mark style="color:yellow;">`Config.NotifyFunction`</mark>, those will be used; otherwise, the script falls back to the default notifications provided by your framework.
* **Discord Integration:**\
  Upon server start, item prices are finalized (using <mark style="color:yellow;">`FinalizeItemPrices()`</mark>) and a price update embed is sent to your Discord channel via the webhook in <mark style="color:yellow;">`Config.Discord`</mark>.
