{"hash":"0xD9319DCB","ns":"CFX","name":"GET_VEHICLE_NEON_COLOUR","slug":"GET_VEHICLE_NEON_COLOUR","official":true,"named":true,"luaName":"GetVehicleNeonColour","game":"cfx","apiset":"server","returnType":"void","params":[{"name":"vehicle","type":"Vehicle","description":"The vehicle to check."},{"name":"red","type":"int*","description":"Pointer to an integer where the red component of the neon color will be stored."},{"name":"green","type":"int*","description":"Pointer to an integer where the green component of the neon color will be stored."},{"name":"blue","type":"int*","description":"Pointer to an integer where the blue component of the neon color will be stored."}],"returnsDescription":"None. The neon color values are retrieved and stored in the `red`, `green`, and `blue` pointers. Make sure to store the returned values in variables for further use.","summary":"Getter to check the neon colour of a vehicle.","descriptions":[{"source":"cfx","format":"md","body":"Getter to check the neon colour of a vehicle. This native is the server side getter of [GET_VEHICLE_NEON_LIGHTS_COLOUR](#\\_0x7619EEE8C886757F)."}],"examples":[{"lang":"lua","code":"local vehicle = GetVehiclePedIsIn(GetPlayerPed(1), false) -- 1 is the source here\nlocal red, green, blue = GetVehicleNeonColour(vehicle)\nprint(red, green, blue)","source":"cfx"},{"lang":"js","code":"const vehicle = GetVehiclePedIsIn(GetPlayerPed(1), false); // 1 is the source here\nconst [red, green, blue] = GetVehicleNeonColour(vehicle);\nconsole.log(red, green, blue);","source":"cfx"},{"lang":"cs","code":"using static CitizenFX.Core.Native.API;\n\nint vehicle = GetVehiclePedIsIn(GetPlayerPed(1), false); // 1 is the source here\nint red, green, blue;\nGetVehicleNeonColour(vehicle, out red, out green, out blue);\nDebug.WriteLine($\"{red}, {green}, {blue}\");","source":"cfx"}],"aliases":[],"enums":[],"related":[],"sources":["cfx"],"doc":3,"url":"https://natives.borderlinerp.com/natives/CFX/GET_VEHICLE_NEON_COLOUR","markdownUrl":"https://natives.borderlinerp.com/natives/CFX/GET_VEHICLE_NEON_COLOUR.md","snippets":{"lua":"local red, green, blue = GetVehicleNeonColour(vehicle)","luaInvoke":"local red, green, blue = Citizen.InvokeNative(0xd9319dcb, vehicle, Citizen.PointerValueInt(), Citizen.PointerValueInt(), Citizen.PointerValueInt())","js":"const [red, green, blue] = GetVehicleNeonColour(vehicle);","jsInvoke":"const [red, green, blue] = Citizen.invokeNative('0xd9319dcb', vehicle, Citizen.pointerValueInt(), Citizen.pointerValueInt(), Citizen.pointerValueInt());","csharp":"var red = new OutputArgument();\nvar green = new OutputArgument();\nvar blue = new OutputArgument();\nFunction.Call((Hash)0xd9319dcb, vehicle, red, green, blue);\n// red.GetResult<int>()\n// green.GetResult<int>()\n// blue.GetResult<int>()","notes":["Pointer (out) arguments are not passed in Lua/JS: their values are returned after the result, in order."]}}