{"hash":"0x877EA24EB1614495","ns":"VEHICLE","name":"_DETERMINE_VEHICLE_COMPARTMENT_STATE","slug":"_DETERMINE_VEHICLE_COMPARTMENT_STATE","official":false,"named":true,"luaName":"DetermineVehicleCompartmentState","game":"rdr3","apiset":"client","returnType":"BOOL","params":[{"name":"outState","type":"Any*"},{"name":"vehicle","type":"Vehicle"},{"name":"ped","type":"Ped"}],"summary":"Determines the interaction/storage state of a vehicle rear compartment or storage area.","descriptions":[{"source":"alloc8or","format":"text","body":"Determines the interaction/storage state of a vehicle rear compartment or storage area.\nReturns whether the query succeeded and writes a state value to outState.\n\nObserved states:\n- 1 = compartment available / unopened\n- 57 = vehicle has no valid compartment/storage\n- 72 = compartment opened, resolved or depleted\n\nUsed by wagons with rear storage and prison wagons with breakable locks."},{"source":"vorp","format":"text","body":"Determines the interaction/storage state of a vehicle rear compartment or storage area.\nReturns whether the query was successful and writes a state value to outState\nObserved states:\n* 1  = Compartment available / unopened\n* 57 = Vehicle has no valid compartment/storage\n* 72 = Compartment opened, resolved or depleted"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or","vorp"],"doc":2,"url":"https://natives.borderlinerp.com/natives/VEHICLE/_DETERMINE_VEHICLE_COMPARTMENT_STATE","markdownUrl":"https://natives.borderlinerp.com/natives/VEHICLE/_DETERMINE_VEHICLE_COMPARTMENT_STATE.md","snippets":{"lua":"local retval, outState = DetermineVehicleCompartmentState(vehicle, ped)","luaInvoke":"local retval, outState = Citizen.InvokeNative(0x877EA24EB1614495, Citizen.PointerValueInt(), vehicle, ped, Citizen.ReturnResultAnyway())","js":"const [retval, outState] = DetermineVehicleCompartmentState(vehicle, ped);","jsInvoke":"const [retval, outState] = Citizen.invokeNative('0x877EA24EB1614495', Citizen.pointerValueInt(), vehicle, ped, Citizen.returnResultAnyway());","csharp":"var outState = new OutputArgument();\nbool retval = Function.Call<bool>((Hash)0x877EA24EB1614495, outState, vehicle, ped);\n// outState.GetResult<int>()","notes":["Pointer (out) arguments are not passed in Lua/JS: their values are returned after the result, in order.","`Any*` arguments are often structs. Build them with a DataView buffer and pass it with `:Buffer()` — see the examples and notes below.","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."]}}