GET_VEHICLE_NEON_COLOUR
Getter to check the neon colour of a vehicle. This native is the server side getter of [GET_VEHICLE_NEON_LIGHTS_COLOUR](#\_0x7619EEE8C886757F).
CFX
Signature
lua
GetVehicleNeonColour(GetVehiclePedIsIn(PlayerPedId(), false), red, green, blue)
-- returns voidParameters
| Name | Type | Description |
|---|---|---|
| Vehicle | The vehicle to check. | |
| int* | Pointer to an integer where the red component of the neon color will be stored. | |
| int* | Pointer to an integer where the green component of the neon color will be stored. | |
| int* | Pointer to an integer where the blue component of the neon color will be stored. |
Usage
Named call
GetVehicleNeonColour(GetVehiclePedIsIn(PlayerPedId(), false), red, green, blue)InvokeNative
Citizen.InvokeNative(0xD9319DCB, GetVehiclePedIsIn(PlayerPedId(), false), red, green, blue)lua 1
local vehicle = GetVehiclePedIsIn(GetPlayerPed(1), false) -- 1 is the source here
local red, green, blue = GetVehicleNeonColour(vehicle)
print(red, green, blue)js 2
const vehicle = GetVehiclePedIsIn(GetPlayerPed(1), false); // 1 is the source here
const [red, green, blue] = GetVehicleNeonColour(vehicle);
console.log(red, green, blue);cs 3
using static CitizenFX.Core.Native.API;
int vehicle = GetVehiclePedIsIn(GetPlayerPed(1), false); // 1 is the source here
int red, green, blue;
GetVehicleNeonColour(vehicle, out red, out green, out blue);
Debug.WriteLine($"{red}, {green}, {blue}");Details
- Hash
- API set
- Source
- cfx
Source: cfx
