βš™οΈUsage

  • Placing the Bag

    • If you’re using ESX, the player obtains the outfit_bag 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 Config.MaxOutfits in the bag.

    • Each outfit (skin data) is stored in the MySQL table bagoutfits 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 Config.CooldownMinutes).

    • 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 Notify 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.

Last updated