getMpOutfitDataFromMetadata
GET_MP_OUTFIT_DATA_FROM_METADATA0x9E30E91FB03A2CAFThe GTA V native GET_MP_OUTFIT_DATA_FROM_METADATA of the PED namespace, as LS:MP client scripts call it: the global function getMpOutfitDataFromMetadata, in JavaScript and in Lua.
getMpOutfitDataFromMetadata(request: { male?: boolean, index?: number }): [
ok: boolean,
outfit: MpOutfit
]getMpOutfitDataFromMetadata(request: table): boolean, tableUsage
JavaScript
const [ok, outfit] = getMpOutfitDataFromMetadata(request);Lua
local ok, outfit = getMpOutfitDataFromMetadata(request)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
request | MpOutfitRequest | { male?: boolean, index?: number } | table |
Returns
2 values, in this order: an array in JavaScript, multiple return values in Lua.
| # | Value | Type | JavaScript | Lua | Description |
|---|---|---|---|---|---|
| 1 | ok | BOOL | boolean | boolean | The native’s own return value. |
| 2 | outfit | MpOutfit | MpOutfit | table | output |
On LS:MP
ℹ
Outfit metadata
Pass { male, index }. Read the outfit record only when the leading success value is true.
ℹ
GTA V Enhanced 1158.16
This LS:MP adapter is available on Enhanced 1158.16. Calls on another build raise an error.
Reference
- Namespace
- Ped PED
- In the game
BOOL GET_MP_OUTFIT_DATA_FROM_METADATA(MpOutfit* outfit, MpOutfitRequest request)- Hash
0x9E30E91FB03A2CAF