{"hash":"0x849791EBBDBA0362","ns":"TASK","name":"_GET_RANSACK_SCENARIO_CONTAINER_NUM_OPEN_COMPARTMENTS","slug":"_GET_RANSACK_SCENARIO_CONTAINER_NUM_OPEN_COMPARTMENTS","official":false,"named":true,"luaName":"GetRansackScenarioContainerNumOpenCompartments","game":"rdr3","apiset":"client","returnType":"int","params":[{"name":"entity","type":"Entity"}],"summary":"Returns the number of currently open compartments for the specified scenario container entity.","descriptions":[{"source":"alloc8or","format":"text","body":"Returns the number of currently open compartments for the specified scenario container entity.\nIf the container has closeable compartments (like drawers), this will return how many of them are currently open.\nIf the container is not closeable (like a chest or safe that cannot be closed again), it will return 0."},{"source":"vorp","format":"text","body":"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"}],"examples":[],"aliases":["_GET_SCENARIO_CONTAINER_NUM_OPEN_COMPARTMENTS"],"enums":[],"related":[],"build":"1207","sources":["alloc8or","vorp"],"doc":2,"url":"https://natives.borderlinerp.com/natives/TASK/_GET_RANSACK_SCENARIO_CONTAINER_NUM_OPEN_COMPARTMENTS","markdownUrl":"https://natives.borderlinerp.com/natives/TASK/_GET_RANSACK_SCENARIO_CONTAINER_NUM_OPEN_COMPARTMENTS.md","snippets":{"lua":"local retval = GetRansackScenarioContainerNumOpenCompartments(entity)","luaInvoke":"local retval = Citizen.InvokeNative(0x849791EBBDBA0362, entity, Citizen.ResultAsInteger())","js":"const retval = GetRansackScenarioContainerNumOpenCompartments(entity);","jsInvoke":"const retval = Citizen.invokeNative('0x849791EBBDBA0362', entity, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"int retval = Function.Call<int>((Hash)0x849791EBBDBA0362, 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."]}}