# 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="https://3270923211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZeCShdo8wBw9pTA0mhmj%2Fuploads%2FWX3zUNbedEuB9wPsPMZ4%2FconfigLootbox.PNG?alt=media&#x26;token=8f2fa2fa-dad9-43e9-92e3-0bd475707f9c" 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="https://3270923211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZeCShdo8wBw9pTA0mhmj%2Fuploads%2FZm9hemKXm3G74RoOFIDS%2FCapture2.PNG?alt=media&#x26;token=6a5c65c6-2b6f-4359-99ac-154331b99e4a" alt=""><figcaption></figcaption></figure>

[^1]:
