_IS_PERSISTENT_CHARACTER_VALID
Returns true if persChar refers to a valid persistent character.
Check it before passing the handle to other PERSCHAR natives.
Signature
BOOL _IS_PERSISTENT_CHARACTER_VALID(PersChar persChar); // 0x800DF3FC913355F3 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | persChar | PersChar |
Facts
| Name | _IS_PERSISTENT_CHARACTER_VALID |
|---|---|
| Hash | 0x800DF3FC913355F3 |
| Namespace | |
| Returns | BOOL |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0x800DF3FC913355F3, -- _IS_PERSISTENT_CHARACTER_VALID
0 -- PersChar persChar
)
if result then
-- ...
endconst result = Citizen.invokeNative("0x800DF3FC913355F3", // _IS_PERSISTENT_CHARACTER_VALID
0, // PersChar persChar
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0x800DF3FC913355F3, // _IS_PERSISTENT_CHARACTER_VALID
0 // PersChar persChar
);Related PERSCHAR natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.