The Lab
PERSCHAR native

_FORCE_SPAWN_PERSCHAR

returns Entity2 paramsbuild 1207

Forces the persistent character persChar to spawn and returns the resulting entity. The meaning of p1 is not documented.

Signature

C
Entity _FORCE_SPAWN_PERSCHAR(PersChar persChar, BOOL p1); // 0x0CADC3A977997472 b1207

Parameters

#NameType
1persCharPersChar
2p1BOOL

Facts

Facts about _FORCE_SPAWN_PERSCHAR
Name
_FORCE_SPAWN_PERSCHAR
Hash
0x0CADC3A977997472
Namespace
Returns
Entity
Game build
1207

Examples

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

Lua
local entity = Citizen.InvokeNative(0x0CADC3A977997472, -- _FORCE_SPAWN_PERSCHAR
  0, -- PersChar persChar
  false, -- BOOL p1
  Citizen.ResultAsInteger()
)
print(entity)
JavaScript
const entity = Citizen.invokeNative("0x0CADC3A977997472", // _FORCE_SPAWN_PERSCHAR
  0, // PersChar persChar
  false, // BOOL p1
  Citizen.resultAsInteger()
);
console.log(entity)
C#
int entity = Function.Call<int>((Hash)0x0CADC3A977997472, // _FORCE_SPAWN_PERSCHAR
  0, // PersChar persChar
  false // BOOL p1
);
All PERSCHAR natives

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