natives.setVehInteriorlight

From GTA Connected
Revision as of 20:38, 18 December 2025 by ChrisGame20 (talk | contribs) (Created page with "{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.setVehInteriorlight |parameters = object vehicle, bool toggle |parameter1 = object vehicle The vehicle |parameter2 = bool toggle True to enable the interior light, false to disable |usage = turn the interior light on/off for a vehicle |notes = This controls the interior light of the specified vehicle. |return1 = void |exampleJS = addCommandHandler("interiorlight", function(command, params, clien...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Function Client Only icon-iv.png Online and Offline

Available since Client 1.0.0

void natives.setVehInteriorlight(object vehicle, bool toggle)

The natives.setVehInteriorlight function is used to turn the interior light on/off for a vehicle.

Parameters

1) object vehicle The vehicle.
2) bool toggle True to enable the interior light, false to disable.

Return

void This function doesn't return a value.

Notes

  • This controls the interior light of the specified vehicle.

Examples

Example 1 - JavaScript:

addCommandHandler("interiorlight", function(command, params, client) {

   natives.setVehInteriorlight(localPlayer.vehicle, true);

});

Compatibility

There isn't any compatibility information for this function.