Entity::setLights: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
(Poor example for setLights when referring to vehicle. (Note: might be worth removing if setLights is only a vehicle function))
Line 7: Line 7:
*'''Undefined'''
*'''Undefined'''
==Example==
==Example==
<syntaxhighlight lang="javascript">
  player.vehicle.setLights(0); // Turn off lights
</syntaxhighlight>


==See also==
==See also==

Revision as of 21:22, 11 May 2021

Syntax

entity.setLights(toggle);

Required Arguments

  • toggle: Boolean

Return value

  • Undefined

Example

See also