_GET_DEADEYE_ABILITY_DEPLETION_DELAY
Returns the depletion delay value for the Deadeye ability that was previously set using `PLAYER::_SET_DEADEYE_ABILITY_DEPLETION_DELAY` (0x870634493CB4372C).
0xE92261BD28C0878FGetDeadeyeAbilityDepletionDelaySignature
float _GET_DEADEYE_ABILITY_DEPLETION_DELAY(Player player);Parameters
| Name | Type | Description |
|---|---|---|
player | Player | — |
Returns float
Description
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
Returns the depletion delay value for the Deadeye ability that was previously set using `SetDeadeyeAbilityDepletionDelay - 0x870634493CB4372C`
Usage
local retval = GetDeadeyeAbilityDepletionDelay(player)
-- always works, by hash
local retval = Citizen.InvokeNative(0xE92261BD28C0878F, player, Citizen.ResultAsFloat())JavaScript and C#
const retval = GetDeadeyeAbilityDepletionDelay(player);
// by hash
const retval = Citizen.invokeNative('0xE92261BD28C0878F', player, Citizen.returnResultAnyway(), Citizen.resultAsFloat());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
InvokeNativewith the hash — it always works.
See also
_SET_DEADEYE_ABILITY_DEPLETION_DELAYOnly used in R* SP Script short_update
Sources
alloc8or RDR3 NativeDB · VORPCORE RDR3natives
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.