clonePedAlt
CLONE_PED_ALT0x668FD40BCBA5DE48The GTA V native CLONE_PED_ALT of the PED namespace, as LS:MP client scripts call it: the global function clonePedAlt, in JavaScript and in Lua.
clonePedAlt(
ped: Ped,
isNetwork: boolean,
bScriptHostPed: boolean,
copyHeadBlendFlag: boolean,
p4: boolean
): PedclonePedAlt(
ped: Ped,
isNetwork: boolean,
bScriptHostPed: boolean,
copyHeadBlendFlag: boolean,
p4: boolean
): PedUsage
JavaScript
const result = clonePedAlt(ped, isNetwork, bScriptHostPed, copyHeadBlendFlag, p4);Lua
local result = clonePedAlt(ped, isNetwork, bScriptHostPed, copyHeadBlendFlag, p4)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
isNetwork | BOOL | boolean | boolean |
bScriptHostPed | BOOL | boolean | boolean |
copyHeadBlendFlag | BOOL | boolean | boolean |
p4 | BOOL | boolean | boolean |
Returns
Ped JavaScript number, Lua integerGame handle of a ped. Not an LS:MP netId. Convert one with lsmp.getEntityFromNetId.
Reference
- Namespace
- Ped PED
- In the game
Ped CLONE_PED_ALT(Ped ped, BOOL isNetwork, BOOL bScriptHostPed, BOOL copyHeadBlendFlag, BOOL p4)- Hash
0x668FD40BCBA5DE48- Introduced
- Game build 463 legacy numbering
- Formerly
_CLONE_PED_2_CLONE_PED_EX