_GET_VEHICLE_XENON_LIGHTS_COLOR
Docslocal retval = GetVehicleXenonLightsColor(vehicle)Description
Use \_SET_VEHICLE_HEADLIGHTS_COLOUR to set the headlights color for the vehicle.
You must enable xenon headlights for this native to work properly.
enum eHeadlightColors {
Default = 255,
White = 0,
Blue = 1,
ElectricBlue = 2,
MintGreen = 3,
LimeGreen = 4,
Yellow = 5,
GoldenShower = 6,
Orange = 7,
Red = 8,
PonyPink = 9,
HotPink = 10,
Purple = 11,
Blacklight = 12
}Parameters
| Name | Type | Description |
|---|---|---|
vehicle | Vehicle | The vehicle to get the headlight color from. |
Quick Snippet: Get Vehiclevehicle
vehicleUse this to get the current vehicle handle for this native.
-- Get the vehicle the player is currently in
local ped = PlayerPedId()
local vehicle = GetVehiclePedIsIn(ped, false)
if vehicle ~= 0 then
print("Vehicle handle: " .. vehicle)
print("Model: " .. GetEntityModel(vehicle))
else
print("Player is not in a vehicle")
endVehicle Models

adder
alpha
blade
ardent
asea
cogcabrio
baller
blistaReturns
intReturns an integer value.