SET_ATTRIBUTE_BASE_RANK
Sets the base rank of the attribute selected by attributeIndex on ped to newValue.
Signature
void SET_ATTRIBUTE_BASE_RANK(Ped ped, int attributeIndex, int newValue); // 0x5DA12E025D47D4E5 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | attributeIndex | int |
| 3 | newValue | int |
Facts
| Name | SET_ATTRIBUTE_BASE_RANK |
|---|---|
| Hash | 0x5DA12E025D47D4E5 |
| Namespace | |
| Returns | void |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
Citizen.InvokeNative(0x5DA12E025D47D4E5, -- SET_ATTRIBUTE_BASE_RANK
PlayerPedId(), -- Ped ped
0, -- int attributeIndex
0 -- int newValue
)Citizen.invokeNative("0x5DA12E025D47D4E5", // SET_ATTRIBUTE_BASE_RANK
PlayerPedId(), // Ped ped
0, // int attributeIndex
0 // int newValue
);Function.Call((Hash)0x5DA12E025D47D4E5, // SET_ATTRIBUTE_BASE_RANK
API.PlayerPedId(), // Ped ped
0, // int attributeIndex
0 // int newValue
);Related ATTRIBUTE natives
- SET_ATTRIBUTE_BONUS_RANK
- SET_ATTRIBUTE_POINTS
- GET_ATTRIBUTE_BASE_RANK
- _SET_ATTRIBUTE_CORE_VALUE
- GET_ATTRIBUTE_BONUS_RANK
- GET_ATTRIBUTE_RANK
- GET_DEFAULT_ATTRIBUTE_POINTS_NEEDED_FOR_RANK
- GET_DEFAULT_ATTRIBUTE_RANK
- GET_DEFAULT_MAX_ATTRIBUTE_RANK
- GET_MAX_ATTRIBUTE_RANK
- _ENABLE_ATTRIBUTE_CORE_OVERPOWER
- _GET_ATTRIBUTE_CORE_OVERPOWER_SECONDS_LEFT
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.