Перейти к содержанию

Player::clone

Материал из RAGE MP Wiki Archive

p3 - last parameter does not mean ped handle is returned
maybe a quick view in disassembly will tell us what is actually does


Example of Cloning Your Player:
CLONE_PED(PLAYER_Player_ID(), GET_ENTITY_HEADING(PLAYER_Player_ID()), 0, 1);

Syntax

<syntaxhighlight lang="javascript">player.clone(heading, networkHandle, pedHandle);</syntaxhighlight>

Required Arguments

  • heading: float
  • networkHandle: Boolean
  • pedHandle: Boolean

Return value

  • Ped handle or object

Example

<syntaxhighlight lang="javascript"> // todo </syntaxhighlight>

See also