PedClientChecked by LS:MP1 output

getMpOutfitDataFromMetadata

GET_MP_OUTFIT_DATA_FROM_METADATA0x9E30E91FB03A2CAF

The 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.

SignatureJavaScript
getMpOutfitDataFromMetadata(request: { male?: boolean, index?: number }): [
  ok: boolean,
  outfit: MpOutfit
]
SignatureLua
getMpOutfitDataFromMetadata(request: table): boolean, table

Usage

JavaScript
const [ok, outfit] = getMpOutfitDataFromMetadata(request);
Lua
local ok, outfit = getMpOutfitDataFromMetadata(request)

Parameters

ParameterTypeJavaScriptLua
requestMpOutfitRequest{ male?: boolean, index?: number }table

Returns

2 values, in this order: an array in JavaScript, multiple return values in Lua.

#ValueTypeJavaScriptLuaDescription
1okBOOLbooleanbooleanThe native’s own return value.
2outfitMpOutfitMpOutfittableoutput

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

Open in the interactive natives reference