_GET_HAS_PLAYER_DISCOVERED_CHARACTER_NAME_SP
Returns true if player has discovered the character name discoveryHash in single-player.
Signature
BOOL _GET_HAS_PLAYER_DISCOVERED_CHARACTER_NAME_SP(Player player, int p1, Hash discoveryHash); // 0x0772F87D7B07719A b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | player | Player |
| 2 | p1 | int |
| 3 | discoveryHash | Hash |
Facts
| 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.
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
-- ...
endconst 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) {
// ...
}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
);Related PLAYER natives
- _SET_PLAYER_HAS_DISCOVERED_CHARACTER_NAME_SP
- GET_HAS_PLAYER_DISCOVERED_CHARACTER_NAME_MP
- _SET_PLAYER_HAS_DISCOVERED_CHARACTER_NAME_MP
- _GET_CONSTRUCTED_DISCOVERED_CHARACTER_NAME
- _MODIFY_PLAYER_DISCOVERED_CHARACTER_NAME_MP_SET_UNDISCOVERED
- GET_TARGET_CHARACTER_NAME_FOR_LOCAL_PLAYER
- GET_PLAYER_NAME
- GET_TARGET_CHARACTER_NAME_SCRIPT_OVERRIDE_HASH
- GET_TARGET_CHARACTER_NAME_SCRIPT_OVERRIDE_RAW_STRING
- _GET_ACTIVE_HORSE_FOR_PLAYER
- _GET_AI_PLAYER_DEFENSE_MODIFIER_AGAINST_AI
- _GET_PLAYER_CACHED_DEAD_EYE_AMOUNT
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.