Graphics::setNightvision: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
(yay)
 
Line 1: Line 1:
Enables Night Vision.<br><br>Example:<br>C#: Function.Call(Hash.SET_NIGHTVISION, true);<br>C++: GRAPHICS::SET_NIGHTVISION(true);<br><br>BOOL toggle:<br>true = turns night vision on for your player.<br>false = turns night vision off for your player.
Enables Night Vision.<br><br>Example:<br>C#: Function.Call(Hash.SET_NIGHTVISION, true);<br>C++: GRAPHICS::SET_NIGHTVISION(true);<br><br>BOOL toggle:<br>true = turns night vision on for your player.<br>false = turns night vision off for your player.
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">graphics.setNightvision(toggle);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.graphics.setNightvision(toggle);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''toggle:''' Boolean
*'''toggle:''' Boolean
Line 8: Line 8:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
todo
// todo
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Graphics_function_c}}
{{Graphics_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Latest revision as of 21:13, 6 May 2017

Enables Night Vision.

Example:
C#: Function.Call(Hash.SET_NIGHTVISION, true);
C++: GRAPHICS::SET_NIGHTVISION(true);

BOOL toggle:
true = turns night vision on for your player.
false = turns night vision off for your player.

Syntax

mp.game.graphics.setNightvision(toggle);

Required Arguments

  • toggle: Boolean

Return value

  • Undefined

Example

// todo

See also