natives.setVehInteriorlight

From GTA Connected
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.