{"hash":"0x640A602946A8C972","ns":"TASK","name":"_GET_RANSACK_SCENARIO_CONTAINER_NUM_COMPARTMENTS","slug":"_GET_RANSACK_SCENARIO_CONTAINER_NUM_COMPARTMENTS","official":false,"named":true,"luaName":"GetRansackScenarioContainerNumCompartments","game":"rdr3","apiset":"client","returnType":"int","params":[{"name":"entity","type":"Entity"}],"summary":"Returns the total number of compartments (drawers, lids, etc.) the specified scenario container entity has.","descriptions":[{"source":"alloc8or","format":"text","body":"Returns the total number of compartments (drawers, lids, etc.) the specified scenario container entity has.\nFor example, a chest has 1 compartment, while a cabinet with 3 drawers returns 3."},{"source":"vorp","format":"text","body":"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."}],"examples":[],"aliases":["_GET_SCENARIO_CONTAINER_NUM_COMPARTMENTS"],"enums":[],"related":[],"build":"1207","sources":["alloc8or","vorp"],"doc":2,"url":"https://natives.borderlinerp.com/natives/TASK/_GET_RANSACK_SCENARIO_CONTAINER_NUM_COMPARTMENTS","markdownUrl":"https://natives.borderlinerp.com/natives/TASK/_GET_RANSACK_SCENARIO_CONTAINER_NUM_COMPARTMENTS.md","snippets":{"lua":"local retval = GetRansackScenarioContainerNumCompartments(entity)","luaInvoke":"local retval = Citizen.InvokeNative(0x640A602946A8C972, entity, Citizen.ResultAsInteger())","js":"const retval = GetRansackScenarioContainerNumCompartments(entity);","jsInvoke":"const retval = Citizen.invokeNative('0x640A602946A8C972', entity, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"int retval = Function.Call<int>((Hash)0x640A602946A8C972, 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."]}}