{"hash":"0xCF867A239EC30741","ns":"VEHICLE","name":"GET_VEHICLE_TRAILER_VEHICLE","slug":"GET_VEHICLE_TRAILER_VEHICLE","official":true,"named":true,"luaName":"GetVehicleTrailerVehicle","game":"rdr3","apiset":"client","returnType":"BOOL","params":[{"name":"vehicle","type":"Vehicle"},{"name":"trailer","type":"Vehicle*"}],"summary":"Gets the trailer of a vehicle and puts it into the trailer parameter.","descriptions":[{"source":"alloc8or","format":"text","body":"Gets the trailer of a vehicle and puts it into the trailer parameter."}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","gtaHash":"0x1CDD6BADC297830D","gtaJhash":"0xAE84D758","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/VEHICLE/GET_VEHICLE_TRAILER_VEHICLE","markdownUrl":"https://natives.borderlinerp.com/natives/VEHICLE/GET_VEHICLE_TRAILER_VEHICLE.md","snippets":{"lua":"local retval, trailer = GetVehicleTrailerVehicle(vehicle, trailer)","luaInvoke":"local retval, trailer = Citizen.InvokeNative(0xCF867A239EC30741, vehicle, Citizen.PointerValueIntInitialized(trailer), Citizen.ReturnResultAnyway())","js":"const [retval, trailer] = GetVehicleTrailerVehicle(vehicle, trailer);","jsInvoke":"const [retval, trailer] = Citizen.invokeNative('0xCF867A239EC30741', vehicle, Citizen.pointerValueIntInitialized(trailer), Citizen.returnResultAnyway());","csharp":"var trailer = new OutputArgument();\nbool retval = Function.Call<bool>((Hash)0xCF867A239EC30741, vehicle, trailer);\n// trailer.GetResult<int>()","notes":["The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result."]}}