VehicleClient

setVehicleNeonColour

SET_VEHICLE_NEON_COLOUR0x8E0A582209A62695

The GTA V native SET_VEHICLE_NEON_COLOUR of the VEHICLE namespace, as LS:MP client scripts call it: the global function setVehicleNeonColour, in JavaScript and in Lua.

SignatureJavaScript
setVehicleNeonColour(vehicle: Vehicle, r: number, g: number, b: number): void
SignatureLua
setVehicleNeonColour(vehicle: Vehicle, r: integer, g: integer, b: integer)

Usage

JavaScript
setVehicleNeonColour(vehicle, r, g, b);
Lua
setVehicleNeonColour(vehicle, r, g, b)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger
rintnumberinteger
gintnumberinteger
bintnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Sets the color of the neon lights of the specified vehicle.

Reference

Namespace
Vehicle VEHICLE
In the game
void SET_VEHICLE_NEON_COLOUR(Vehicle vehicle, int r, int g, int b)
Hash
0x8E0A582209A62695
Formerly
_SET_VEHICLE_NEON_LIGHTS_COLOUR

Open in the interactive natives reference