RedM Index logoRedM Index
NativesHashesClothesBlipsPropsItem Tool
Sign inGet started

Reference

  • Natives
  • Hashes
  • Clothes
  • Blips
  • Props

Namespace

  1. Reference
  2. Natives
  3. _GET_SHOP_ITEM_COMPONENT_AT_INDEX

_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 Hash

Parameters

NameTypeDescription
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)
end

Details

Hash
Source
VORPCORE/RDR3natives

Source: VORPCORE/RDR3natives

On this page

  • Signature
  • Parameters
  • Usage
  • Details