# Config

## Framework

This script can be standalone, if needed, and we implemented two basic frameworks. You can change to your preferred framework like this:

<figure><img src="/files/SQy9jYX3oFnZG8SfXdzv" alt=""><figcaption><p>⬇️ ⬇️</p></figcaption></figure>

## Opening UI by command

* *"useCommandToOpenUI"* <- Must be true
* *If you are using ESX* and want it *to be registered by it*, please pass "*useESXFrameworkToRegisterCommand*" as true
* *If you are using QBCore* and want it *to be registered by it*, please pass "*useQBCoreFrameworkToRegisterCommand*" to true

{% hint style="info" %}
**Otherwise leave these 2 values false and it will be generated by a "RegisterCommand".**
{% endhint %}

## Opening UI by Register Useable Item

### ⬇️ [Specific Item](#user-content-fn-1)[^1] ⬇️

* *"useRegisterItemNameToOpenUI"* <- must be true
* *"registerItemName"* <- must contain name of the object that will be registered as usable and can be registered
* *"useRegisterItemOfAllLootBoxesToOpenUI"* <- must be false

### ⬇️ All the lootboxes of the config ⬇️

* *"useRegisterItemNameToOpenUI"* <- must be false
* *"useRegisterItemOfAllLootBoxesToOpenUI"* <- must be true

## Discord Logs

If you want to enable logs, please enter the link to your Discord webhook in the file located in **server/webhook.lua**

## Translation

<figure><img src="/files/xWMHNVposfx0SNMdIDbt" alt=""><figcaption></figcaption></figure>

[^1]:


---

# 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://kox-core.gitbook.io/loot-box-1.0/config.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.
