GET_DEFAULT_ATTRIBUTE_POINTS_NEEDED_FOR_RANK
Returns how many attribute points are needed to reach rank for the given attribute, using the default tuning of the ped model modelHash.
Signature
int GET_DEFAULT_ATTRIBUTE_POINTS_NEEDED_FOR_RANK(Hash modelHash, int attributeIndex, int rank); // 0x94A7F191DB49A44D b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | modelHash | Hash |
| 2 | attributeIndex | int |
| 3 | rank | int |
Facts
| Name | GET_DEFAULT_ATTRIBUTE_POINTS_NEEDED_FOR_RANK |
|---|---|
| Hash | 0x94A7F191DB49A44D |
| Namespace | |
| Returns | int |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0x94A7F191DB49A44D, -- GET_DEFAULT_ATTRIBUTE_POINTS_NEEDED_FOR_RANK
GetHashKey("a_c_horse_arabian_white"), -- Hash modelHash
0, -- int attributeIndex
0, -- int rank
Citizen.ResultAsInteger()
)
print(result)const result = Citizen.invokeNative("0x94A7F191DB49A44D", // GET_DEFAULT_ATTRIBUTE_POINTS_NEEDED_FOR_RANK
GetHashKey("a_c_horse_arabian_white"), // Hash modelHash
0, // int attributeIndex
0, // int rank
Citizen.resultAsInteger()
);
console.log(result)int result = Function.Call<int>((Hash)0x94A7F191DB49A44D, // GET_DEFAULT_ATTRIBUTE_POINTS_NEEDED_FOR_RANK
(uint)API.GetHashKey("a_c_horse_arabian_white"), // Hash modelHash
0, // int attributeIndex
0 // int rank
);Related ATTRIBUTE natives
- GET_DEFAULT_ATTRIBUTE_RANK
- GET_DEFAULT_MAX_ATTRIBUTE_RANK
- GET_ATTRIBUTE_BASE_RANK
- GET_ATTRIBUTE_BONUS_RANK
- GET_ATTRIBUTE_POINTS
- GET_ATTRIBUTE_RANK
- GET_MAX_ATTRIBUTE_POINTS
- GET_MAX_ATTRIBUTE_RANK
- _GET_ATTRIBUTE_CORE_OVERPOWER_SECONDS_LEFT
- _GET_ATTRIBUTE_CORE_VALUE
- _GET_ATTRIBUTE_OVERPOWER_SECONDS_LEFT
- ADD_ATTRIBUTE_POINTS
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.