{"hash":"0x684BDBF2","ns":"CFX","name":"GET_VEHICLE_NEON_ENABLED","slug":"GET_VEHICLE_NEON_ENABLED","official":true,"named":true,"luaName":"GetVehicleNeonEnabled","game":"cfx","apiset":"server","returnType":"BOOL","params":[{"name":"vehicle","type":"Vehicle","description":"The vehicle to check."},{"name":"neonIndex","type":"int","description":"A value from the neonIndex enum representing the neon light to check."}],"returnsDescription":"Returns `true` if the specified neon light is enabled, `false` otherwise.","summary":"Getter to check if one of the neon lights of a vehicle is enabled.","descriptions":[{"source":"cfx","format":"md","body":"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).\n\n```cpp\nenum neonIndex\n{\n    NEON_BACK = 0,   // Back neon\n    NEON_RIGHT = 1,  // Right neon\n    NEON_LEFT = 2,   // Left neon\n    NEON_FRONT = 3   // Front neon\n};\n```"}],"examples":[{"lang":"lua","code":"local vehicle = GetVehiclePedIsIn(GetPlayerPed(1), false) -- 1 is the source here\nlocal isRightNeonOn = GetVehicleNeonEnabled(vehicle, 1)\nprint(isRightNeonOn)","source":"cfx"},{"lang":"js","code":"const vehicle = GetVehiclePedIsIn(GetPlayerPed(1), false); // 1 is the source here\nconst isRightNeonOn = GetVehicleNeonEnabled(vehicle, 1);\nconsole.log(isRightNeonOn);","source":"cfx"},{"lang":"cs","code":"using static CitizenFX.Core.Native.API;\n\nint vehicle = GetVehiclePedIsIn(GetPlayerPed(1), false); // 1 is the source here\nbool isRightNeonOn = GetVehicleNeonEnabled(vehicle, 1);\nDebug.WriteLine($\"{isRightNeonOn}\");","source":"cfx"}],"aliases":[],"enums":[],"related":[],"sources":["cfx"],"doc":3,"url":"https://natives.borderlinerp.com/natives/CFX/GET_VEHICLE_NEON_ENABLED","markdownUrl":"https://natives.borderlinerp.com/natives/CFX/GET_VEHICLE_NEON_ENABLED.md","snippets":{"lua":"local retval = GetVehicleNeonEnabled(vehicle, neonIndex)","luaInvoke":"local retval = Citizen.InvokeNative(0x684bdbf2, vehicle, neonIndex, Citizen.ReturnResultAnyway())","js":"const retval = GetVehicleNeonEnabled(vehicle, neonIndex);","jsInvoke":"const retval = Citizen.invokeNative('0x684bdbf2', vehicle, neonIndex, Citizen.returnResultAnyway());","csharp":"bool retval = Function.Call<bool>((Hash)0x684bdbf2, vehicle, neonIndex);","notes":[]}}