_EAGLE_EYE_CAN_PLAYER_FOCUS_ON_TRACK
Checks if the player can focus on tracks while in Eagle Eye mode.
Hash
0x1DA5C5B0923E1B85Runtime name
EagleEyeCanPlayerFocusOnTrackNamespacePLAYER
SideClient
NameCommunity guess
Docs
Since build1207
Signature
BOOL _EAGLE_EYE_CAN_PLAYER_FOCUS_ON_TRACK(Player player);Parameters
| Name | Type | Description |
|---|---|---|
player | Player | — |
Returns BOOL
Description
Checks if the player can focus on tracks while in Eagle Eye mode. Returns true if the player is able to focus on a track, otherwise false.
Example usage:
if (PLAYER::_EAGLE_EYE_CAN_PLAYER_FOCUS_ON_TRACK(PLAYER::PLAYER_ID())) {
// Perform actions when the player is focusing on a track in Eagle Eye mode
}
Video: https://imgur.com/gallery/0x1da5c5b0923e1b85-M8AyOsu
Usage
local retval = EagleEyeCanPlayerFocusOnTrack(player)
-- always works, by hash
local retval = Citizen.InvokeNative(0x1DA5C5B0923E1B85, player, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = EagleEyeCanPlayerFocusOnTrack(player);
// by hash
const retval = Citizen.invokeNative('0x1DA5C5B0923E1B85', player, Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0x1DA5C5B0923E1B85, player);- The name is a community guess and may change. If the named call is missing in your client build, use
InvokeNativewith the hash — it always works.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.