GET_DEFAULT_ATTRIBUTE_POINTS_NEEDED_FOR_RANK
Hash
0x94A7F191DB49A44DRuntime name
GetDefaultAttributePointsNeededForRankNamespaceATTRIBUTE
SideClient
NameOfficial
Docs
Since build1207
Signature
int GET_DEFAULT_ATTRIBUTE_POINTS_NEEDED_FOR_RANK(Hash modelHash, int attributeIndex, int rank);Parameters
| Name | Type | Description |
|---|---|---|
modelHash | Hash | — |
attributeIndex | int | — |
rank | int | — |
Returns int
Description
attributeIndex: see SET_ATTRIBUTE_BASE_RANK
Usage
local retval = GetDefaultAttributePointsNeededForRank(modelHash, attributeIndex, rank)
-- always works, by hash
local retval = Citizen.InvokeNative(0x94A7F191DB49A44D, modelHash, attributeIndex, rank, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetDefaultAttributePointsNeededForRank(modelHash, attributeIndex, rank);
// by hash
const retval = Citizen.invokeNative('0x94A7F191DB49A44D', modelHash, attributeIndex, rank, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x94A7F191DB49A44D, modelHash, attributeIndex, rank);- Hash parameters: the named function also accepts a string and hashes it for you;
Citizen.InvokeNativeneeds the number — passjoaat("name")or a backtick literal like`name`.
Enums and flags
- PedAttribute__AttributeType 23 values
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.