Player::intToParticipantindex: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
(yay)
 
Line 1: Line 1:
Simply returns whatever is passed to it (Regardless of whether the handle is valid or not).<br>--------------------------------------------------------<br>if (NETWORK::NETWORK_IS_PARTICIPANT_ACTIVE(PLAYER::INT_TO_PARTICIPANTINDEX(i)))<br>
Simply returns whatever is passed to it (Regardless of whether the handle is valid or not).<br>--------------------------------------------------------<br>if (NETWORK::NETWORK_IS_PARTICIPANT_ACTIVE(PLAYER::INT_TO_PARTICIPANTINDEX(i)))<br>
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">player.intToParticipantindex(value);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.player.intToParticipantindex(value);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''value:''' int
*'''value:''' int
Line 8: Line 8:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
todo
// todo
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Player_function_c}}
{{Player_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Latest revision as of 21:30, 6 May 2017

Simply returns whatever is passed to it (Regardless of whether the handle is valid or not).
--------------------------------------------------------
if (NETWORK::NETWORK_IS_PARTICIPANT_ACTIVE(PLAYER::INT_TO_PARTICIPANTINDEX(i)))

Syntax

mp.game.player.intToParticipantindex(value);

Required Arguments

  • value: int

Return value

  • int

Example

// todo

See also