The Lab
PERSCHAR native

_IS_PERSISTENT_CHARACTER_VALID

returns BOOL1 parambuild 1207

Returns true if persChar refers to a valid persistent character.

Check it before passing the handle to other PERSCHAR natives.

Signature

C
BOOL _IS_PERSISTENT_CHARACTER_VALID(PersChar persChar); // 0x800DF3FC913355F3 b1207

Parameters

#NameType
1persCharPersChar

Facts

Facts about _IS_PERSISTENT_CHARACTER_VALID
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.

Lua
local result = Citizen.InvokeNative(0x800DF3FC913355F3, -- _IS_PERSISTENT_CHARACTER_VALID
  0 -- PersChar persChar
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0x800DF3FC913355F3", // _IS_PERSISTENT_CHARACTER_VALID
  0, // PersChar persChar
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0x800DF3FC913355F3, // _IS_PERSISTENT_CHARACTER_VALID
  0 // PersChar persChar
);
All PERSCHAR natives

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