setupShopPedApparelQueryTu

SETUP_SHOP_PED_APPAREL_QUERY_TU0x9BDF59818B1E38C1

The GTA V native SETUP_SHOP_PED_APPAREL_QUERY_TU of the EXTRAMETADATA namespace, as LS:MP client scripts call it: the global function setupShopPedApparelQueryTu, in JavaScript and in Lua.

SignatureJavaScript
setupShopPedApparelQueryTu(
  character: number,
  p1: number,
  p2: number,
  p3: boolean,
  p4: number,
  componentId: number
): number
SignatureLua
setupShopPedApparelQueryTu(
  character: integer,
  p1: integer,
  p2: integer,
  p3: boolean,
  p4: integer,
  componentId: integer
): integer

Usage

JavaScript
const result = setupShopPedApparelQueryTu(character, p1, p2, p3, p4, componentId);
Lua
local result = setupShopPedApparelQueryTu(character, p1, p2, p3, p4, componentId)

Parameters

ParameterTypeJavaScriptLua
characterintnumberinteger
p1intnumberinteger
p2intnumberinteger
p3BOOLbooleanboolean
p4intnumberinteger
componentIdintnumberinteger

Returns

int JavaScript number, Lua integer

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

character is 0 for Michael, 1 for Franklin, 2 for Trevor, 3 for freemode male, and 4 for freemode female.

componentId is between 0 and 11 and corresponds to the usual component slots.

p1 could be the outfit number; unsure.

p2 is usually -1; unknown function.

p3 appears to be for selecting between clothes and props; false is used with components/clothes, true is used with props.

p4 is usually -1; unknown function.

componentId is -1 when p3 is true in decompiled scripts.

Reference

Namespace
Shop metadata EXTRAMETADATA
In the game
int SETUP_SHOP_PED_APPAREL_QUERY_TU(int character, int p1, int p2, BOOL p3, int p4, int componentId)
Hash
0x9BDF59818B1E38C1
Formerly
_GET_NUM_PROPS_FROM_OUTFIT

Open in the interactive natives reference