Player::setEyeColor: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
m (category)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
Used for freemode (online) characters.<br><br>For some reason, the scripts use a rounded float for the index.
= Information =
==Syntax==
Set a pedestrians eye color based on the integers between 0 and 31.
<syntaxhighlight lang="javascript">player.setEyeColor(index);</syntaxhighlight>
= Syntax =
=== Required Arguments ===
<pre>player.setEyeColor(index);</pre>
= Required Arguments =
*'''index:''' int
*'''index:''' int
===Return value===
= Return value =
*'''Undefined'''
*'''Undefined'''
==Example==
= Example =
<syntaxhighlight lang="javascript">
<pre>
// todo
mp.players.local.setEyeColor(1);
</syntaxhighlight>
</pre>
==See also==
= See also =
{{Player_function_c}}
{{Player_function_c}}
[[Category:Player Appearance]]
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:Client-side Function]]

Latest revision as of 13:24, 30 April 2019

Information

Set a pedestrians eye color based on the integers between 0 and 31.

Syntax

player.setEyeColor(index);

Required Arguments

  • index: int

Return value

  • Undefined

Example

mp.players.local.setEyeColor(1);

See also