The Lab
STATS native

_STAT_CALCULATE_COOLDOWN

returns int1 parambuild 1207

Based on its name and signature, here is our best reading:

Computes a cooldown value from value and returns it as an integer.

Signature

C
int _STAT_CALCULATE_COOLDOWN(int value); // 0x1E7384AB5D4F4581 b1207

Parameters

#NameType
1valueint

Facts

Facts about _STAT_CALCULATE_COOLDOWN
Name
_STAT_CALCULATE_COOLDOWN
Hash
0x1E7384AB5D4F4581
Namespace
Returns
int
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(0x1E7384AB5D4F4581, -- _STAT_CALCULATE_COOLDOWN
  0, -- int value
  Citizen.ResultAsInteger()
)
print(result)
JavaScript
const result = Citizen.invokeNative("0x1E7384AB5D4F4581", // _STAT_CALCULATE_COOLDOWN
  0, // int value
  Citizen.resultAsInteger()
);
console.log(result)
C#
int result = Function.Call<int>((Hash)0x1E7384AB5D4F4581, // _STAT_CALCULATE_COOLDOWN
  0 // int value
);
All STATS natives

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