_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 intParameters
| Name | Type | Description |
|---|---|---|
| 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
