IsVehicleHeadlightBroken

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

Returns whether the specified vehicle's specified headlight is broken or not.

Dialog-warning.png Note: This feature is currently not in the API, or is currently not accurate on the wiki due to upcoming API changes. New API functions and changes will be released with the next update.

Syntax

In C#
Server-Side Function

API.isVehicleHeadlightBroken(NetHandle vehicle, int headlight);

Required Arguments

  • vehicle parameter input should be in NetHandle type.
  • headlight parameter input should be in int type.
    • 0 - Left Headlight
    • 1 - Right Headlight

NOTE: This function returns data in bool type.

In Javascript
Client-Side Function

API.isVehicleHeadlightBroken(LocalHandle vehicle, int headlight);

Required Arguments

  • vehicle parameter input should be in LocalHandle type.
  • headlight parameter input should be in int type.
    • 0 - Left Headlight
    • 1 - Right Headlight

NOTE: This function returns data in bool type.

Usage example

In C#
Server-Side Function

API.isVehicleHeadlightBroken(NetHandle vehicle, int headlight);

In Javascript
Client-Side Function

API.isVehicleHeadlightBroken(LocalHandle vehicle, int headlight);

References