getVehicleNeonColour
GET_VEHICLE_NEON_COLOUR0x7619EEE8C886757FThe GTA V native GET_VEHICLE_NEON_COLOUR of the VEHICLE namespace, as LS:MP client scripts call it: the global function getVehicleNeonColour, in JavaScript and in Lua.
getVehicleNeonColour(vehicle: Vehicle): [r: number, g: number, b: number]getVehicleNeonColour(vehicle: Vehicle): integer, integer, integerUsage
JavaScript
const [r, g, b] = getVehicleNeonColour(vehicle);Lua
local r, g, b = getVehicleNeonColour(vehicle)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
vehicle | Vehicle | number | integer |
Returns
3 values, in this order: an array in JavaScript, multiple return values in Lua.
| # | Value | Type | JavaScript | Lua | Description |
|---|---|---|---|---|---|
| 1 | r | int | number | integer | output |
| 2 | g | int | number | integer | output |
| 3 | b | int | number | integer | output |
Notes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
Gets the color of the neon lights of the specified vehicle.
See setVehicleNeonColour (0x8E0A582209A62695) for more information
Reference
- Namespace
- Vehicle VEHICLE
- In the game
void GET_VEHICLE_NEON_COLOUR(Vehicle vehicle, int* r, int* g, int* b)- Hash
0x7619EEE8C886757F- Formerly
_GET_VEHICLE_NEON_LIGHTS_COLOUR