Shop metadataClient3 outputs

getVariantProp

GET_VARIANT_PROP0xD81B7F27BC773E66

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

SignatureJavaScript
getVariantProp(componentHash: Hash, variantPropIndex: number): [
  nameHash: Hash,
  enumValue: number,
  anchorPoint: number
]
SignatureLua
getVariantProp(
  componentHash: Hash,
  variantPropIndex: integer
): Hash, integer, integer

Usage

JavaScript
const [nameHash, enumValue, anchorPoint] = getVariantProp(componentHash, variantPropIndex);
Lua
local nameHash, enumValue, anchorPoint = getVariantProp(componentHash, variantPropIndex)

Parameters

ParameterTypeJavaScriptLua
componentHashHashnumberinteger
variantPropIndexintnumberinteger

Returns

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

#ValueTypeJavaScriptLuaDescription
1nameHashHashnumberintegeroutput
2enumValueintnumberintegeroutput
3anchorPointintnumberintegeroutput

Reference

Namespace
Shop metadata EXTRAMETADATA
In the game
void GET_VARIANT_PROP(Hash componentHash, int variantPropIndex, Hash* nameHash, int* enumValue, int* anchorPoint)
Hash
0xD81B7F27BC773E66
Introduced
Game build 791 legacy numbering
Formerly
_GET_VARIANT_PROP

Open in the interactive natives reference