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
Last updated