| Property | Value |
|---|---|
| Native Name | CLONE_PED |
| Hash | 0xEF29A16337FACADB |
| Return Type | Ped |
| Parameters | ped (Ped), isNetwork (BOOL), bScriptHostPed (BOOL), copyHeadBlendFlag (BOOL) |
Description: Creates a copy of the passed ped, optionally setting it as local and/or shallow-copying the head blend data.
Parameters
ped(Ped) — The input ped.isNetwork(BOOL) — Whether or not the ped should be registered as a network object.bScriptHostPed(BOOL) — Script host flag.copyHeadBlendFlag(BOOL) — If true, head blend data is referenced, not copied.
Examples
-- makes a locally visible duplicate of the local player for presentation
local playerDummy = ClonePed(PlayerPedId(), false, false, true)
SetEntityCoords(playerDummy, pos.x, pos.y, pos.z)