GET_ATTRIBUTE_BONUS_RANK
Returns the bonus rank currently added on top of the base rank for the given attribute of ped.
Signature
int GET_ATTRIBUTE_BONUS_RANK(Ped ped, int coreIndex); // 0x0EFA71F4B4330E04 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | coreIndex | int |
Facts
| Name | GET_ATTRIBUTE_BONUS_RANK |
|---|---|
| Hash | 0x0EFA71F4B4330E04 |
| 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(0x0EFA71F4B4330E04, -- GET_ATTRIBUTE_BONUS_RANK
PlayerPedId(), -- Ped ped
0, -- int coreIndex
Citizen.ResultAsInteger()
)
print(result)const result = Citizen.invokeNative("0x0EFA71F4B4330E04", // GET_ATTRIBUTE_BONUS_RANK
PlayerPedId(), // Ped ped
0, // int coreIndex
Citizen.resultAsInteger()
);
console.log(result)int result = Function.Call<int>((Hash)0x0EFA71F4B4330E04, // GET_ATTRIBUTE_BONUS_RANK
API.PlayerPedId(), // Ped ped
0 // int coreIndex
);Related ATTRIBUTE natives
- GET_ATTRIBUTE_BASE_RANK
- GET_ATTRIBUTE_RANK
- GET_ATTRIBUTE_POINTS
- GET_DEFAULT_ATTRIBUTE_POINTS_NEEDED_FOR_RANK
- GET_DEFAULT_ATTRIBUTE_RANK
- GET_DEFAULT_MAX_ATTRIBUTE_RANK
- GET_MAX_ATTRIBUTE_RANK
- SET_ATTRIBUTE_BONUS_RANK
- GET_MAX_ATTRIBUTE_POINTS
- _GET_ATTRIBUTE_CORE_OVERPOWER_SECONDS_LEFT
- _GET_ATTRIBUTE_CORE_VALUE
- _GET_ATTRIBUTE_OVERPOWER_SECONDS_LEFT
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.