Перейти к содержанию

SetVehicleNeonColor

Материал из RAGE MP Wiki Archive
Версия от 21:13, 27 ноября 2019; imported>Avoid (Created page with "This function sets the neon color of a vehicle with an RGB value. {{CSharpContainer| {{#tag:pre|void {{Template:CSharp_Serverside_namespace}}Vehicle.SetVehicleNeonColor(Vehic...")
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

This function sets the neon color of a vehicle with an RGB value.


void NAPI.Vehicle.SetVehicleNeonColor(Vehicle vehicle, int r, int g, int b);

Parameters

  • vehicle: parameter input should be in Vehicle type
  • r: parameter input should be in int type
  • g: parameter input should be in int type
  • b: parameter input should be in int type

Example

<syntaxhighlight lang="csharp"> NAPI.Vehicle.SetVehicleNeonColor(vehicle, 255, 0, 0); </syntaxhighlight>