Skip to content

SetVehicleXenonLightsCustomColor ​

клиент SET_VEHICLE_XENON_LIGHTS_CUSTOM_COLOR

c
void SET_VEHICLE_XENON_LIGHTS_CUSTOM_COLOR(Vehicle vehicle, int red, int green, int blue);

Sets custom vehicle xenon lights color, allowing to use RGB palette. The game will ignore lights color set by _SET_VEHICLE_XENON_LIGHTS_COLOR when custom color is active. This native is not synced between players. Requires xenon lights mod to be set on vehicle.

Параметры ​

  • vehicle: The vehicle handle.
  • red: Red color (0-255).
  • green: Green color (0-255).
  • blue: Blue color (0-255).

Примеры ​

lua
local vehicle = GetVehiclePedIsUsing(PlayerPedId())
if DoesEntityExist(vehicle) then
  -- Toggle xenon lights mod.
  ToggleVehicleMod(vehicle, 22, true)

  -- Set pink lights color.
  SetVehicleXenonLightsCustomColor(vehicle, 244, 5, 82)
end

Страница собрана автоматически из native-decls/SetVehicleXenonLightsCustomColor.md. Нашли ошибку — поправьте исходный файл.

Независимый проект на базе Cfx.re. Не связан с Rockstar Games и Take-Two Interactive.