The Lab
ATTRIBUTE native

_GET_ATTRIBUTE_OVERPOWER_SECONDS_LEFT

returns float2 paramsbuild 1207

Returns the remaining duration, in seconds, of the overpowered state on the attribute selected by attributeIndex.

Signature

C
float _GET_ATTRIBUTE_OVERPOWER_SECONDS_LEFT(Ped ped, int attributeIndex); // 0x4C9F782180712742 b1207

Parameters

#NameType
1pedPed
2attributeIndexint

Facts

Facts about _GET_ATTRIBUTE_OVERPOWER_SECONDS_LEFT
Name
_GET_ATTRIBUTE_OVERPOWER_SECONDS_LEFT
Hash
0x4C9F782180712742
Namespace
Returns
float
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(0x4C9F782180712742, -- _GET_ATTRIBUTE_OVERPOWER_SECONDS_LEFT
  PlayerPedId(), -- Ped ped
  0, -- int attributeIndex
  Citizen.ResultAsFloat()
)
print(result)
JavaScript
const result = Citizen.invokeNative("0x4C9F782180712742", // _GET_ATTRIBUTE_OVERPOWER_SECONDS_LEFT
  PlayerPedId(), // Ped ped
  0, // int attributeIndex
  Citizen.resultAsFloat()
);
console.log(result)
C#
float result = Function.Call<float>((Hash)0x4C9F782180712742, // _GET_ATTRIBUTE_OVERPOWER_SECONDS_LEFT
  API.PlayerPedId(), // Ped ped
  0 // int attributeIndex
);
All ATTRIBUTE natives

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