GET_ATTRIBUTE_RANK
Hash
0xA4C8E23E29040DE0Runtime name
GetAttributeRankNamespaceATTRIBUTE
SideClient
NameOfficial
Docs
Since build1207
Signature
int GET_ATTRIBUTE_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 = GetAttributeRank(ped, attributeIndex)
-- always works, by hash
local retval = Citizen.InvokeNative(0xA4C8E23E29040DE0, ped, attributeIndex, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetAttributeRank(ped, attributeIndex);
// by hash
const retval = Citizen.invokeNative('0xA4C8E23E29040DE0', ped, attributeIndex, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0xA4C8E23E29040DE0, ped, attributeIndex);Enums and flags
- PedAttribute__AttributeType 23 values
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.