The Lab
ATTRIBUTE native

_GET_ATTRIBUTE_CORE_VALUE

returns int2 paramsbuild 1207

Returns the current fill value of an attribute core (health, stamina or Dead Eye, chosen by coreIndex) for ped, typically on a 0 to 100 scale.

Signature

C
int _GET_ATTRIBUTE_CORE_VALUE(Ped ped, int coreIndex); // 0x36731AC041289BB1 b1207

Parameters

#NameType
1pedPed
2coreIndexint

Facts

Facts about _GET_ATTRIBUTE_CORE_VALUE
Name
_GET_ATTRIBUTE_CORE_VALUE
Hash
0x36731AC041289BB1
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(0x36731AC041289BB1, -- _GET_ATTRIBUTE_CORE_VALUE
  PlayerPedId(), -- Ped ped
  0, -- int coreIndex
  Citizen.ResultAsInteger()
)
print(result)
JavaScript
const result = Citizen.invokeNative("0x36731AC041289BB1", // _GET_ATTRIBUTE_CORE_VALUE
  PlayerPedId(), // Ped ped
  0, // int coreIndex
  Citizen.resultAsInteger()
);
console.log(result)
C#
int result = Function.Call<int>((Hash)0x36731AC041289BB1, // _GET_ATTRIBUTE_CORE_VALUE
  API.PlayerPedId(), // Ped ped
  0 // int coreIndex
);
All ATTRIBUTE natives

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