_GET_SHOP_ITEM_COMPONENT_AT_INDEX
Returns the current shop item component at index and it's wearable state
PEDBuild 1207
Signature
lua
GetShopItemComponentAtIndex(PlayerPedId(), 0, true, argStruct, wearableState)
-- returns HashParameters
| Name | Type | Description |
|---|---|---|
| Ped | — | |
| int | — | |
| BOOL | — | |
| Any* | — | |
| Hash* | — |
Usage
Named call
GetShopItemComponentAtIndex(PlayerPedId(), 0, true, argStruct, wearableState)InvokeNative
Citizen.InvokeNative(0x77BA37622E22023B, PlayerPedId(), 0, true, argStruct, wearableState)lua 1
local ped = PlayerPedId()
local numComponent = GetNumComponentsInPed(ped)
for index = 0, numComponent -1 do
local componentHash,_,wearableState = GetShopItemComponentAtIndex(ped, index, true, Citizen.ResultAsInteger(), Citizen.ResultAsInteger())
print('Index:',index,'Hash:',componentHash,'wearable state:', wearableState)
endDetails
- Hash
- Source
- VORPCORE/RDR3natives
Source: VORPCORE/RDR3natives
