{"hash":"0x40D82D88","ns":"CFX","name":"GET_VEHICLE_COLOURS","slug":"GET_VEHICLE_COLOURS","official":true,"named":true,"luaName":"GetVehicleColours","game":"cfx","apiset":"server","returnType":"void","params":[{"name":"vehicle","type":"Vehicle"},{"name":"colorPrimary","type":"int*"},{"name":"colorSecondary","type":"int*"}],"summary":"","descriptions":[],"examples":[],"aliases":[],"enums":[],"related":["0x57F24253"],"sources":["cfx"],"doc":1,"url":"https://natives.borderlinerp.com/natives/CFX/GET_VEHICLE_COLOURS","markdownUrl":"https://natives.borderlinerp.com/natives/CFX/GET_VEHICLE_COLOURS.md","snippets":{"lua":"local colorPrimary, colorSecondary = GetVehicleColours(vehicle)","luaInvoke":"local colorPrimary, colorSecondary = Citizen.InvokeNative(0x40d82d88, vehicle, Citizen.PointerValueInt(), Citizen.PointerValueInt())","js":"const [colorPrimary, colorSecondary] = GetVehicleColours(vehicle);","jsInvoke":"const [colorPrimary, colorSecondary] = Citizen.invokeNative('0x40d82d88', vehicle, Citizen.pointerValueInt(), Citizen.pointerValueInt());","csharp":"var colorPrimary = new OutputArgument();\nvar colorSecondary = new OutputArgument();\nFunction.Call((Hash)0x40d82d88, vehicle, colorPrimary, colorSecondary);\n// colorPrimary.GetResult<int>()\n// colorSecondary.GetResult<int>()","notes":["Pointer (out) arguments are not passed in Lua/JS: their values are returned after the result, in order."]}}