getForcedProp
GET_FORCED_PROP0xE1CA84EBF72E691DThe 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.
getForcedProp(componentHash: Hash, forcedPropIndex: number): [
nameHash: Hash,
enumValue: number,
anchorPoint: number
]getForcedProp(
componentHash: Hash,
forcedPropIndex: integer
): Hash, integer, integerUsage
JavaScript
const [nameHash, enumValue, anchorPoint] = getForcedProp(componentHash, forcedPropIndex);Lua
local nameHash, enumValue, anchorPoint = getForcedProp(componentHash, forcedPropIndex)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
componentHash | Hash | number | integer |
forcedPropIndex | 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_FORCED_PROP(Hash componentHash, int forcedPropIndex, Hash* nameHash, int* enumValue, int* anchorPoint)- Hash
0xE1CA84EBF72E691D