Blue Byte Documentation
  • Home
  • Scripts
    • Advanced Inventory
      • Installation
      • Migration
      • Temporary Inventories
      • API
        • Client Exports
          • GetAPI
          • GetItems
          • GetItem
          • IsInventoryOpen
          • DisableInventory
          • IsInventoryDisabled
          • RefreshClothing
          • GetPlayerInventory
          • SetDrawAnimation
          • ResetDrawAnimation
          • GetPlayerItemCount
          • AccessInventory
          • GetCurrentWeapon
        • Server Exports
          • GetAPI
          • GetItems
          • GetItem
          • GetPlayerInventory
          • ClearPlayerInventory
          • ClearPlayerClothing
          • AddPlayerItem
          • SetPlayerClothing
          • SetPlayerClothingFromCurrentComponents
          • RemovePlayerItem
          • CanPlayerCarryItem
          • GetPlayerItemCount
          • AddPlayerWeapon
          • RegisterUsableItem
          • SetItemMetadata
          • GetPlayerClothingByIdentifier
          • RemoveInventoryItemById
          • RemoveInventoryItemBySlot
          • GetInventoryItemById
          • GetPlayerItemById
          • CreateInventory
          • LoadInventoryByIdentifier
          • RegisterTemporaryInventoryHandler
          • ClearInventoryById
          • SearchPlayer
    • Simple Garage
    • Simple Tattoostudio
Powered by GitBook
On this page
  • Params
  • Usage
  1. Scripts
  2. Advanced Inventory
  3. API
  4. Server Exports

SetPlayerClothing

Sets a Player clothing


Params

Name
Optional
Example

source

no

1

componentType

no

'COMPONENT' | 'PROP'

componentId

no

11

drawableId

no

2

textureId

no

1

collection

no

mp_m_lowrider_02

model

yes (Needed for all non-mp peds)

mp_m_freemode_01

Usage

local api = exports["bb_inventory"]:GetAPI()

local successful = api.SetPlayerClothing(source, "COMPONENT", 11, 2, 1, "mp_m_lowrider_02")
local successful = api.SetPlayerClothing(source, "PROP", 1, 1, 5, "male_freemode_business")

local successful = exports["bb_inventory"]:SetPlayerClothing(source, "COMPONENT", 11, 2, 1, "mp_m_lowrider_02")
local successful = exports["bb_inventory"]:SetPlayerClothing(source, "PROP", 1, 1, 5, "male_freemode_business")

print(successful)
--- true

PreviousAddPlayerItemNextSetPlayerClothingFromCurrentComponents

Last updated 21 days ago