RedM Natives

GET_ATTRIBUTE_BASE_RANK

Hash0x147149F2E909323C
Runtime nameGetAttributeBaseRank
NamespaceATTRIBUTE
SideClient
NameOfficial
Docs
Since build1207

Signature

int GET_ATTRIBUTE_BASE_RANK(Ped ped, int attributeIndex);

Parameters

NameTypeDescription
pedPed—
attributeIndexint—

Returns int

Description

attributeIndex: see SET_ATTRIBUTE_BASE_RANK

Usage

Lua
local retval = GetAttributeBaseRank(ped, attributeIndex)

-- always works, by hash
local retval = Citizen.InvokeNative(0x147149F2E909323C, ped, attributeIndex, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetAttributeBaseRank(ped, attributeIndex);

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

Enums and flags

See also

Sources

alloc8or RDR3 NativeDB

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