RedM Natives

_GET_RANSACK_SCENARIO_CONTAINER_REMAINING_LOOT_COUNT

Returns the total number of lootable items currently inside the specified scenario container entity.

Hash0x01AF8A3729231A43
Runtime nameGetRansackScenarioContainerRemainingLootCount
NamespaceTASK
SideClient
NameCommunity guess
Docs
Since build1207
Also known as_GET_SCENARIO_CONTAINER_REMAINING_LOOT_COUNT

Signature

int _GET_RANSACK_SCENARIO_CONTAINER_REMAINING_LOOT_COUNT(Entity entity);

Parameters

NameTypeDescription
entityEntity—

Returns int

Description

alloc8or RDR3 NativeDB

Returns the total number of lootable items currently inside the specified scenario container entity.
This value decreases as items are looted.Before opening, it may return 0 because contents are not always loaded until the container is opened.

VORPCORE RDR3natives

Returns the total number of lootable items currently inside the specified scenario container entity.This value decreases as items are looted. Before opening, it may return 0 because contents are not always loaded until the container is opened

Usage

Lua
local retval = GetRansackScenarioContainerRemainingLootCount(entity)

-- always works, by hash
local retval = Citizen.InvokeNative(0x01AF8A3729231A43, entity, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetRansackScenarioContainerRemainingLootCount(entity);

// by hash
const retval = Citizen.invokeNative('0x01AF8A3729231A43', entity, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0x01AF8A3729231A43, entity);
  • The name is a community guess and may change. If the named call is missing in your client build, use InvokeNative with the hash — it always works.

Sources

alloc8or RDR3 NativeDB · VORPCORE RDR3natives

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.