SET_ATTRIBUTE_POINTS
Sets the experience points of the attribute selected by attributeIndex on ped directly, replacing the current amount.
Signature
void SET_ATTRIBUTE_POINTS(Ped ped, int attributeIndex, int p2); // 0x09A59688C26D88DF b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | attributeIndex | int |
| 3 | p2 | int |
Facts
| Name | SET_ATTRIBUTE_POINTS |
|---|---|
| Hash | 0x09A59688C26D88DF |
| 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(0x09A59688C26D88DF, -- SET_ATTRIBUTE_POINTS
PlayerPedId(), -- Ped ped
0, -- int attributeIndex
0 -- int p2
)Citizen.invokeNative("0x09A59688C26D88DF", // SET_ATTRIBUTE_POINTS
PlayerPedId(), // Ped ped
0, // int attributeIndex
0 // int p2
);Function.Call((Hash)0x09A59688C26D88DF, // SET_ATTRIBUTE_POINTS
API.PlayerPedId(), // Ped ped
0, // int attributeIndex
0 // int p2
);Related ATTRIBUTE natives
- SET_ATTRIBUTE_BASE_RANK
- SET_ATTRIBUTE_BONUS_RANK
- _SET_ATTRIBUTE_CORE_VALUE
- ADD_ATTRIBUTE_POINTS
- GET_ATTRIBUTE_POINTS
- GET_DEFAULT_ATTRIBUTE_POINTS_NEEDED_FOR_RANK
- GET_MAX_ATTRIBUTE_POINTS
- _ENABLE_ATTRIBUTE_CORE_OVERPOWER
- _GET_ATTRIBUTE_CORE_OVERPOWER_SECONDS_LEFT
- _GET_ATTRIBUTE_CORE_VALUE
- _GET_ATTRIBUTE_OVERPOWER_SECONDS_LEFT
- _IS_ATTRIBUTE_CORE_OVERPOWERED
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.