GET_ATTRIBUTE_BONUS_RANK
Hash
0x0EFA71F4B4330E04Runtime name
GetAttributeBonusRankNamespaceATTRIBUTE
SideClient
NameOfficial
Docs
Since build1207
Signature
int GET_ATTRIBUTE_BONUS_RANK(Ped ped, int coreIndex);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
coreIndex | int | — |
Returns int
Description
attributeIndex: see SET_ATTRIBUTE_BASE_RANK
Usage
local retval = GetAttributeBonusRank(ped, coreIndex)
-- always works, by hash
local retval = Citizen.InvokeNative(0x0EFA71F4B4330E04, ped, coreIndex, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetAttributeBonusRank(ped, coreIndex);
// by hash
const retval = Citizen.invokeNative('0x0EFA71F4B4330E04', ped, coreIndex, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x0EFA71F4B4330E04, ped, coreIndex);Enums and flags
- PedAttribute__AttributeType 23 values
See also
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.