The Lab
PLAYER native

_GET_HAS_PLAYER_DISCOVERED_CHARACTER_NAME_SP

returns BOOL3 paramsbuild 1207

Returns true if player has discovered the character name discoveryHash in single-player.

Signature

C
BOOL _GET_HAS_PLAYER_DISCOVERED_CHARACTER_NAME_SP(Player player, int p1, Hash discoveryHash); // 0x0772F87D7B07719A b1207

Parameters

#NameType
1playerPlayer
2p1int
3discoveryHashHash

Facts

Facts about _GET_HAS_PLAYER_DISCOVERED_CHARACTER_NAME_SP
Name
_GET_HAS_PLAYER_DISCOVERED_CHARACTER_NAME_SP
Hash
0x0772F87D7B07719A
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(0x0772F87D7B07719A, -- _GET_HAS_PLAYER_DISCOVERED_CHARACTER_NAME_SP
  PlayerId(), -- Player player
  0, -- int p1
  GetHashKey("name") -- Hash discoveryHash
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0x0772F87D7B07719A", // _GET_HAS_PLAYER_DISCOVERED_CHARACTER_NAME_SP
  PlayerId(), // Player player
  0, // int p1
  GetHashKey("name"), // Hash discoveryHash
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0x0772F87D7B07719A, // _GET_HAS_PLAYER_DISCOVERED_CHARACTER_NAME_SP
  API.PlayerId(), // Player player
  0, // int p1
  (uint)API.GetHashKey("name") // Hash discoveryHash
);
All PLAYER natives

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