GET_ATTRIBUTE_BASE_RANK
Hash
0x147149F2E909323CRuntime name
GetAttributeBaseRankNamespaceATTRIBUTE
SideClient
NameOfficial
Docs
Since build1207
Signature
int GET_ATTRIBUTE_BASE_RANK(Ped ped, int attributeIndex);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
attributeIndex | int | — |
Returns int
Description
attributeIndex: see SET_ATTRIBUTE_BASE_RANK
Usage
local retval = GetAttributeBaseRank(ped, attributeIndex)
-- always works, by hash
local retval = Citizen.InvokeNative(0x147149F2E909323C, ped, attributeIndex, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetAttributeBaseRank(ped, attributeIndex);
// by hash
const retval = Citizen.invokeNative('0x147149F2E909323C', ped, attributeIndex, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x147149F2E909323C, ped, attributeIndex);Enums and flags
- PedAttribute__AttributeType 23 values
See also
SET_ATTRIBUTE_BASE_RANKPA_HEALTH, PA_STAMINA, PA_SPECIALABILITY, PA_COURAGE, PA_AGILITY, PA_SPEED, PA_ACCELERATION, PA_BONDING, SA_HUNGER, SA_FATIGUED, SA_INEBRIATED, SA_POISONED, SA_BODYHEAT, SA_BODYWEIGHT, SA_OVERFED, SA_SICKNESS, SA_DIRTINESS, SA_DIRTINESSH…
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.