RedM Natives

_GET_ATTRIBUTE_CORE_VALUE

Gets the ped's core value on a scale of 0 to 100.

Hash0x36731AC041289BB1
Runtime nameGetAttributeCoreValue
NamespaceATTRIBUTE
SideClient
NameCommunity guess
Docs
Since build1207

Signature

int _GET_ATTRIBUTE_CORE_VALUE(Ped ped, int coreIndex);

Parameters

NameTypeDescription
pedPed—
coreIndexint—

Returns int

Description

Gets the ped's core value on a scale of 0 to 100.
coreIndex: see _SET_ATTRIBUTE_CORE_VALUE

Usage

Lua
local retval = GetAttributeCoreValue(ped, coreIndex)

-- always works, by hash
local retval = Citizen.InvokeNative(0x36731AC041289BB1, ped, coreIndex, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetAttributeCoreValue(ped, coreIndex);

// by hash
const retval = Citizen.invokeNative('0x36731AC041289BB1', ped, coreIndex, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0x36731AC041289BB1, ped, coreIndex);
  • 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

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.