From GT-MP
Jump to: navigation, search
Shared Function
Utilities-terminal.png Server-Side System-users.png Client-Side
Csharp.png C# Javascript.png JavaScript

Sets the status of the specified neon light of the specified vehicle.


API.setVehicleNeonState(NetHandle vehicle, int slot, bool turnedOn);

Required Arguments

  • vehicle: parameter input should be in NetHandle type.
  • slot: parameter input should be in int type.
  • turnedOn: parameter input should be in bool type.

Available slots

  • 0 = Left
  • 1 = Right
  • 2 = Front
  • 3 = Back

Usage example(s)

Turn on vehicle's available neon-slots

for(int slot = 0; slot <= 3; slot++) 
    API.setVehicleNeonState(vehicle, slot, true);