> 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/outfit-bag-script/usage.md).

# Usage

* **Placing the Bag**
  * If you’re using **ESX**, the player obtains the <mark style="color:red;">`outfit_bag`</mark> item in their inventory.
  * After a short animation, the bag is placed, and other players can see it.
* **Saving & Listing Outfits**
  * Players can save up to <mark style="color:red;">`Config.MaxOutfits`</mark> in the bag.
  * Each outfit (skin data) is stored in the MySQL table <mark style="color:red;">`bagoutfits`</mark> under the player’s identifier.
  * The script provides a UI (via NUI) or notifications that let players see existing outfits, delete them, or create new ones.
* **Cooldown System**
  * After changing into an outfit, the script sets a cooldown (in minutes, defined by <mark style="color:red;">`Config.CooldownMinutes`</mark>).
  * If a player attempts another outfit change before the cooldown expires, they receive a notification.
* **Picking Up the Bag**
  * The owner can retrieve the bag with another animation (like a short pick-up or kneel).
  * Once picked up, the bag object is removed from the world, preventing further interaction by others.
* **Notifications**
  * Calls the <mark style="color:red;">`Notify`</mark> function if you’re on ESX or QBcore. If you want a custom notify system, you can adapt the function or add your own logic.
