natives.areTaxiLightsOn: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{ScriptItem |endpoint = client |type = function |name = natives.areTaxiLightsOn |parameters = vehicle Vehicle |parameter1 = vehicle Vehicle The vehicle |usage = turn the taxi light on/off for a vehicle |notes = Use natives.setTaxiLights to turn on and off the taxi light |return1 = bool |returnFail1 = void |exampleJS = addCommandHandler("taxilight", function(command, params, client) { natives.setTaxiLights(localPlayer.vehicle, !natives.areTa...") |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{ScriptItem | {{ScriptItem | ||
|endpoint = client | |endpoint = client | ||
|games = iv | |||
|type = function | |type = function | ||
|name = natives.areTaxiLightsOn | |name = natives.areTaxiLightsOn | ||
|parameters = vehicle | |parameters = Vehicle vehicle | ||
|parameter1 = vehicle | |parameter1 = Vehicle vehicle The vehicle | ||
|usage = turn the taxi light on/off for a vehicle | |usage = turn the taxi light on/off for a vehicle | ||
|notes = Use [[natives.setTaxiLights|natives.setTaxiLights]] to turn on and off the taxi light | |notes = Use [[natives.setTaxiLights|natives.setTaxiLights]] to turn on and off the taxi light | ||
Latest revision as of 19:35, 12 November 2025
Function Client Only ![]()
Online and Offline
Available since Client 1.0.0
bool natives.areTaxiLightsOn(Vehicle vehicle)
The natives.areTaxiLightsOn function is used to turn the taxi light on/off for a vehicle.
Parameters
| 1) | Vehicle | vehicle | The vehicle. |
Return
| bool | Documentation Missing: Description for return value
|
Notes
- Use natives.setTaxiLights to turn on and off the taxi light.
Examples
Example 1 - JavaScript:
addCommandHandler("taxilight", function(command, params, client) {
natives.setTaxiLights(localPlayer.vehicle, !natives.areTaxiLightsOn(localPlayer.vehicle));
});
Compatibility
There isn't any compatibility information for this function.