RedM Natives

GET_ATTRIBUTE_BONUS_RANK

Hash0x0EFA71F4B4330E04
Runtime nameGetAttributeBonusRank
NamespaceATTRIBUTE
SideClient
NameOfficial
Docs
Since build1207

Signature

int GET_ATTRIBUTE_BONUS_RANK(Ped ped, int coreIndex);

Parameters

NameTypeDescription
pedPed—
coreIndexint—

Returns int

Description

attributeIndex: see SET_ATTRIBUTE_BASE_RANK

Usage

Lua
local retval = GetAttributeBonusRank(ped, coreIndex)

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

// by hash
const retval = Citizen.invokeNative('0x0EFA71F4B4330E04', ped, coreIndex, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0x0EFA71F4B4330E04, ped, coreIndex);

Enums and flags

See also

Sources

alloc8or RDR3 NativeDB

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