Shop metadataClient3 outputs

getForcedProp

GET_FORCED_PROP0xE1CA84EBF72E691D

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

SignatureJavaScript
getForcedProp(componentHash: Hash, forcedPropIndex: number): [
  nameHash: Hash,
  enumValue: number,
  anchorPoint: number
]
SignatureLua
getForcedProp(
  componentHash: Hash,
  forcedPropIndex: integer
): Hash, integer, integer

Usage

JavaScript
const [nameHash, enumValue, anchorPoint] = getForcedProp(componentHash, forcedPropIndex);
Lua
local nameHash, enumValue, anchorPoint = getForcedProp(componentHash, forcedPropIndex)

Parameters

ParameterTypeJavaScriptLua
componentHashHashnumberinteger
forcedPropIndexintnumberinteger

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_FORCED_PROP(Hash componentHash, int forcedPropIndex, Hash* nameHash, int* enumValue, int* anchorPoint)
Hash
0xE1CA84EBF72E691D

Open in the interactive natives reference