_CREATE_PERSISTENT_CHARACTER
Creates a persistent character from the definition identified by hash and returns its PersChar handle.
Signature
PersChar _CREATE_PERSISTENT_CHARACTER(Hash hash); // 0x4F76E3676583D951 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | hash | Hash |
Facts
| Name | _CREATE_PERSISTENT_CHARACTER |
|---|---|
| Hash | 0x4F76E3676583D951 |
| Namespace | |
| Returns | PersChar |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local persChar = Citizen.InvokeNative(0x4F76E3676583D951, -- _CREATE_PERSISTENT_CHARACTER
GetHashKey("name"), -- Hash hash
Citizen.ResultAsInteger()
)
print(persChar)const persChar = Citizen.invokeNative("0x4F76E3676583D951", // _CREATE_PERSISTENT_CHARACTER
GetHashKey("name"), // Hash hash
Citizen.resultAsInteger()
);
console.log(persChar)int persChar = Function.Call<int>((Hash)0x4F76E3676583D951, // _CREATE_PERSISTENT_CHARACTER
(uint)API.GetHashKey("name") // Hash hash
);Related PERSCHAR natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.