_GET_RANSACK_SCENARIO_CONTAINER_NUM_OPEN_COMPARTMENTS
Returns the number of currently open compartments for the specified scenario container entity.
0x849791EBBDBA0362GetRansackScenarioContainerNumOpenCompartments_GET_SCENARIO_CONTAINER_NUM_OPEN_COMPARTMENTSSignature
int _GET_RANSACK_SCENARIO_CONTAINER_NUM_OPEN_COMPARTMENTS(Entity entity);Parameters
| Name | Type | Description |
|---|---|---|
entity | Entity | — |
Returns int
Description
Returns the number of currently open compartments for the specified scenario container entity.
If the container has closeable compartments (like drawers), this will return how many of them are currently open.
If the container is not closeable (like a chest or safe that cannot be closed again), it will return 0.
Returns the number of currently open compartments for the specified scenario container entity if the container has closeable compartments (like drawers), this will return how many of them are currently open if the container is not closeable (like a chest or safe that cannot be closed again), it will return 0
Usage
local retval = GetRansackScenarioContainerNumOpenCompartments(entity)
-- always works, by hash
local retval = Citizen.InvokeNative(0x849791EBBDBA0362, entity, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetRansackScenarioContainerNumOpenCompartments(entity);
// by hash
const retval = Citizen.invokeNative('0x849791EBBDBA0362', entity, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x849791EBBDBA0362, entity);- The name is a community guess and may change. If the named call is missing in your client build, use
InvokeNativewith the hash — it always works.
Sources
alloc8or RDR3 NativeDB · VORPCORE RDR3natives
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.