RedM Index logoRedM Index
NativesHashesClothesBlipsPropsItem Tool
Sign inGet started

Reference

  • Natives
  • Hashes
  • Clothes
  • Blips
  • Props

Namespace

  1. Reference
  2. Natives
  3. _GET_SCENARIO_CONTAINER_NUM_COMPARTMENTS

_GET_SCENARIO_CONTAINER_NUM_COMPARTMENTS

returns the total number of compartments (drawers, lids, etc.) the specified scenario container entity has for example, a chest has 1 compartment, while a cabinet with 3 drawers returns 3.

TASKBuild 1207

Signature

lua
GetScenarioContainerNumCompartments(entity)
-- returns int

Parameters

NameTypeDescription
Entity—

Usage

lua
GetScenarioContainerNumCompartments(entity)

Generated from the native name, hash, and parameter list. Add a real example.

Details

Hash
Source
VORPCORE/RDR3natives

Source: VORPCORE/RDR3natives

On this page

  • Signature
  • Parameters
  • Usage
  • Details