PedClient

clonePedToTargetAlt

CLONE_PED_TO_TARGET_ALT0x148B08C2D2ACB884

The GTA V native CLONE_PED_TO_TARGET_ALT of the PED namespace, as LS:MP client scripts call it: the global function clonePedToTargetAlt, in JavaScript and in Lua.

SignatureJavaScript
clonePedToTargetAlt(ped: Ped, targetPed: Ped, p2: boolean): void
SignatureLua
clonePedToTargetAlt(ped: Ped, targetPed: Ped, p2: boolean)

Usage

JavaScript
clonePedToTargetAlt(ped, targetPed, p2);
Lua
clonePedToTargetAlt(ped, targetPed, p2)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
targetPedPednumberinteger
p2BOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Ped PED
In the game
void CLONE_PED_TO_TARGET_ALT(Ped ped, Ped targetPed, BOOL p2)
Hash
0x148B08C2D2ACB884
Introduced
Game build 463 legacy numbering
Formerly
_CLONE_PED_TO_TARGET_EX

Open in the interactive natives reference