# PLAYER::_GET_DEADEYE_ABILITY_DEPLETION_DELAY

- **Hash:** `0xE92261BD28C0878F`
- **Namespace:** PLAYER
- **Runtime name (Lua/JS):** `GetDeadeyeAbilityDepletionDelay`
- **Side:** client (game native)
- **Name status:** community guess (may change)
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/PLAYER/_GET_DEADEYE_ABILITY_DEPLETION_DELAY

## Signature

```c
float _GET_DEADEYE_ABILITY_DEPLETION_DELAY(Player player);
```

## Parameters

- `player` (`Player`)

## Returns

`float`

## Description

*Source: alloc8or RDR3 NativeDB*

Returns the depletion delay value for the Deadeye ability that was previously set using `PLAYER::_SET_DEADEYE_ABILITY_DEPLETION_DELAY` (0x870634493CB4372C). This function provides a float value representing the delay, allowing the game to retrieve the current Deadeye depletion setting for a specific player.

Example usage:

float depletionDelay = PLAYER::_GET_DEADEYE_ABILITY_DEPLETION_DELAY(PLAYER::PLAYER_ID());
Video: https://imgur.com/gallery/0xe92261bd28c0878f-TAqX0fg

*Source: VORPCORE RDR3natives*

Returns the depletion delay value for the Deadeye ability that was previously set using `SetDeadeyeAbilityDepletionDelay - 0x870634493CB4372C`

## Usage

### Lua

```lua
local retval = GetDeadeyeAbilityDepletionDelay(player)

-- always available, by hash
local retval = Citizen.InvokeNative(0xE92261BD28C0878F, player, Citizen.ResultAsFloat())
```

### JavaScript

```js
const retval = GetDeadeyeAbilityDepletionDelay(player);

// by hash
const retval = Citizen.invokeNative('0xE92261BD28C0878F', player, Citizen.returnResultAnyway(), Citizen.resultAsFloat());
```

### C#

```csharp
float retval = Function.Call<float>((Hash)0xE92261BD28C0878F, player);
```

- The name is a community guess and may change. If the named call is missing in your client build, use `InvokeNative` with the hash — it always works.

## See also

- [PLAYER::_SET_DEADEYE_ABILITY_DEPLETION_DELAY](https://natives.borderlinerp.com/natives/PLAYER/_SET_DEADEYE_ABILITY_DEPLETION_DELAY.md) — Only used in R* SP Script short_update

*Sources: alloc8or RDR3 NativeDB, VORPCORE RDR3natives.*
