The Lab
PED native

CLONE_PED

returns Ped4 paramsbuild 1207

Creates a copy of ped with the same appearance and returns the new ped. isNetwork makes it a networked entity.

Signature

C
Ped CLONE_PED(Ped ped, BOOL isNetwork, BOOL bScriptHostPed, BOOL copyHeadBlendFlag); // 0xEF29A16337FACADB b1207

Parameters

#NameType
1pedPed
2isNetworkBOOL
3bScriptHostPedBOOL
4copyHeadBlendFlagBOOL

Facts

Facts about CLONE_PED
Name
CLONE_PED
Hash
0xEF29A16337FACADB
Namespace
Returns
Ped
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local ped = Citizen.InvokeNative(0xEF29A16337FACADB, -- CLONE_PED
  PlayerPedId(), -- Ped ped
  false, -- BOOL isNetwork
  false, -- BOOL bScriptHostPed
  false, -- BOOL copyHeadBlendFlag
  Citizen.ResultAsInteger()
)
print(ped)
JavaScript
const ped = Citizen.invokeNative("0xEF29A16337FACADB", // CLONE_PED
  PlayerPedId(), // Ped ped
  false, // BOOL isNetwork
  false, // BOOL bScriptHostPed
  false, // BOOL copyHeadBlendFlag
  Citizen.resultAsInteger()
);
console.log(ped)
C#
int ped = Function.Call<int>((Hash)0xEF29A16337FACADB, // CLONE_PED
  API.PlayerPedId(), // Ped ped
  false, // BOOL isNetwork
  false, // BOOL bScriptHostPed
  false // BOOL copyHeadBlendFlag
);
All PED natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.