Skip to content

Outfit Bag — Server Export ​

UseBag(source, slot)

Routes a bag item through the active inventory integration. Normally native framework usable callbacks call this automatically.

lua
exports.fs_outfitbag:UseBag(source, item.slot)
ArgumentTypeMeaning
sourcenumberServer player ID from the authoritative usable-item callback
slotnumberThe exact inventory slot the player used

Do not remove the item before calling. Do not choose a slot by item name alone: two same-name bags can have different metadata and outfits.

The server verifies the item, definition and bag identity; successful item use starts the normal nearby placement flow. This is not a direct wardrobe-open or admin-freecam export.

Custom integrations must implement the active inventory adapter's exact-slot metadata contract. Do not expose a client-triggered wrapper that trusts arbitrary player IDs or bypasses the resource's validation.

FWB Studio documentation.