{"hash":"0x01AF8A3729231A43","ns":"TASK","name":"_GET_RANSACK_SCENARIO_CONTAINER_REMAINING_LOOT_COUNT","slug":"_GET_RANSACK_SCENARIO_CONTAINER_REMAINING_LOOT_COUNT","official":false,"named":true,"luaName":"GetRansackScenarioContainerRemainingLootCount","game":"rdr3","apiset":"client","returnType":"int","params":[{"name":"entity","type":"Entity"}],"summary":"Returns the total number of lootable items currently inside the specified scenario container entity.","descriptions":[{"source":"alloc8or","format":"text","body":"Returns the total number of lootable items currently inside the specified scenario container entity.\nThis value decreases as items are looted.Before opening, it may return 0 because contents are not always loaded until the container is opened."},{"source":"vorp","format":"text","body":"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"}],"examples":[],"aliases":["_GET_SCENARIO_CONTAINER_REMAINING_LOOT_COUNT"],"enums":[],"related":[],"build":"1207","sources":["alloc8or","vorp"],"doc":2,"url":"https://natives.borderlinerp.com/natives/TASK/_GET_RANSACK_SCENARIO_CONTAINER_REMAINING_LOOT_COUNT","markdownUrl":"https://natives.borderlinerp.com/natives/TASK/_GET_RANSACK_SCENARIO_CONTAINER_REMAINING_LOOT_COUNT.md","snippets":{"lua":"local retval = GetRansackScenarioContainerRemainingLootCount(entity)","luaInvoke":"local retval = Citizen.InvokeNative(0x01AF8A3729231A43, entity, Citizen.ResultAsInteger())","js":"const retval = GetRansackScenarioContainerRemainingLootCount(entity);","jsInvoke":"const retval = Citizen.invokeNative('0x01AF8A3729231A43', entity, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"int retval = Function.Call<int>((Hash)0x01AF8A3729231A43, entity);","notes":["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."]}}