_FORCE_SPAWN_PERSCHAR
Forces the persistent character persChar to spawn and returns the resulting entity. The meaning of p1 is not documented.
Signature
Entity _FORCE_SPAWN_PERSCHAR(PersChar persChar, BOOL p1); // 0x0CADC3A977997472 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | persChar | PersChar |
| 2 | p1 | BOOL |
Facts
| 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.
local entity = Citizen.InvokeNative(0x0CADC3A977997472, -- _FORCE_SPAWN_PERSCHAR
0, -- PersChar persChar
false, -- BOOL p1
Citizen.ResultAsInteger()
)
print(entity)const entity = Citizen.invokeNative("0x0CADC3A977997472", // _FORCE_SPAWN_PERSCHAR
0, // PersChar persChar
false, // BOOL p1
Citizen.resultAsInteger()
);
console.log(entity)int entity = Function.Call<int>((Hash)0x0CADC3A977997472, // _FORCE_SPAWN_PERSCHAR
0, // PersChar persChar
false // BOOL p1
);Related PERSCHAR natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.