VehicleClient3 outputs

getVehicleNeonColour

GET_VEHICLE_NEON_COLOUR0x7619EEE8C886757F

The 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.

SignatureJavaScript
getVehicleNeonColour(vehicle: Vehicle): [r: number, g: number, b: number]
SignatureLua
getVehicleNeonColour(vehicle: Vehicle): integer, integer, integer

Usage

JavaScript
const [r, g, b] = getVehicleNeonColour(vehicle);
Lua
local r, g, b = getVehicleNeonColour(vehicle)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger

Returns

3 values, in this order: an array in JavaScript, multiple return values in Lua.

#ValueTypeJavaScriptLuaDescription
1rintnumberintegeroutput
2gintnumberintegeroutput
3bintnumberintegeroutput

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

Open in the interactive natives reference