RedM Index logoRedM Index
NativesHashesClothesBlipsPropsItem Tool
Sign inGet started

Reference

  • Natives
  • Hashes
  • Clothes
  • Blips
  • Props

Namespace

  1. Reference
  2. Natives
  3. GET_VEHICLE_NEON_ENABLED

GET_VEHICLE_NEON_ENABLED

Getter to check if one of the neon lights of a vehicle is enabled. This native is the server side getter of [IS_VEHICLE_NEON_LIGHT_ENABLED](#\_0x8C4B92553E4766A5). ```cpp enum neonIndex { NEON_BACK = 0, // Back neon NEON_RIGHT = 1, // Right neon NEON_LEFT = 2, // Left neon NEON_FRONT = 3 // Front neon }; ```

CFX

Signature

lua
GetVehicleNeonEnabled(GetVehiclePedIsIn(PlayerPedId(), false), 0)
-- returns BOOL

Parameters

NameTypeDescription
VehicleThe vehicle to check.
intA value from the neonIndex enum representing the neon light to check.

Usage

Named call
GetVehicleNeonEnabled(GetVehiclePedIsIn(PlayerPedId(), false), 0)
InvokeNative
Citizen.InvokeNative(0x684BDBF2, GetVehiclePedIsIn(PlayerPedId(), false), 0)
lua 1
local vehicle = GetVehiclePedIsIn(GetPlayerPed(1), false) -- 1 is the source here
local isRightNeonOn = GetVehicleNeonEnabled(vehicle, 1)
print(isRightNeonOn)
js 2
const vehicle = GetVehiclePedIsIn(GetPlayerPed(1), false); // 1 is the source here
const isRightNeonOn = GetVehicleNeonEnabled(vehicle, 1);
console.log(isRightNeonOn);
cs 3
using static CitizenFX.Core.Native.API;

int vehicle = GetVehiclePedIsIn(GetPlayerPed(1), false); // 1 is the source here
bool isRightNeonOn = GetVehicleNeonEnabled(vehicle, 1);
Debug.WriteLine($"{isRightNeonOn}");

Details

Hash
API set
Source
cfx

Source: cfx

On this page

  • Signature
  • Parameters
  • Usage
  • Details