getVariantProp
GET_VARIANT_PROP0xD81B7F27BC773E66The 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.
getVariantProp(componentHash: Hash, variantPropIndex: number): [
nameHash: Hash,
enumValue: number,
anchorPoint: number
]getVariantProp(
componentHash: Hash,
variantPropIndex: integer
): Hash, integer, integerUsage
JavaScript
const [nameHash, enumValue, anchorPoint] = getVariantProp(componentHash, variantPropIndex);Lua
local nameHash, enumValue, anchorPoint = getVariantProp(componentHash, variantPropIndex)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
componentHash | Hash | number | integer |
variantPropIndex | int | number | integer |
Returns
3 values, in this order: an array in JavaScript, multiple return values in Lua.
| # | Value | Type | JavaScript | Lua | Description |
|---|---|---|---|---|---|
| 1 | nameHash | Hash | number | integer | output |
| 2 | enumValue | int | number | integer | output |
| 3 | anchorPoint | int | number | integer | output |
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