Notice: Failed to invoke Pygments: [Called from MediaWiki\SyntaxHighlight\SyntaxHighlight::highlightInner in /home/pi/www/gtac/wiki/wiki/extensions/SyntaxHighlight_GeSHi/includes/SyntaxHighlight.php at line 334] in /home/pi/www/gtac/wiki/wiki/includes/debug/MWDebug.php on line 507

Notice: Failed to invoke Pygments: [Called from MediaWiki\SyntaxHighlight\SyntaxHighlight::highlightInner in /home/pi/www/gtac/wiki/wiki/extensions/SyntaxHighlight_GeSHi/includes/SyntaxHighlight.php at line 334] in /home/pi/www/gtac/wiki/wiki/includes/debug/MWDebug.php on line 507
natives.areTaxiLightsOn - GTA Connected

natives.areTaxiLightsOn

Revision as of 19:32, 12 November 2025 by Vortrex (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Function Client Only icon-iii.png icon-vc.png icon-sa.png icon-iv.png 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

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.