_SPECIAL_ABILITY_RESTORE_BY_AMOUNT
Restores the special ability meter of player by amount.
Signature
void _SPECIAL_ABILITY_RESTORE_BY_AMOUNT(Player player, float amount, int p2, int p3, int p4); // 0x51345AE20F22C261 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | player | Player |
| 2 | amount | float |
| 3 | p2 | int |
| 4 | p3 | int |
| 5 | p4 | int |
Facts
| Name | _SPECIAL_ABILITY_RESTORE_BY_AMOUNT |
|---|---|
| Hash | 0x51345AE20F22C261 |
| 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(0x51345AE20F22C261, -- _SPECIAL_ABILITY_RESTORE_BY_AMOUNT
PlayerId(), -- Player player
0.0, -- float amount
0, -- int p2
0, -- int p3
0 -- int p4
)// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0x51345AE20F22C261", // _SPECIAL_ABILITY_RESTORE_BY_AMOUNT
PlayerId(), // Player player
0.0, // float amount
0, // int p2
0, // int p3
0 // int p4
);Function.Call((Hash)0x51345AE20F22C261, // _SPECIAL_ABILITY_RESTORE_BY_AMOUNT
API.PlayerId(), // Player player
0.0f, // float amount
0, // int p2
0, // int p3
0 // int p4
);Related PLAYER natives
- _SPECIAL_ABILITY_DRAIN_BY_AMOUNT
- _SPECIAL_ABILITY_RESTORE_OUTER_RING
- _SPECIAL_ABILITY_GET_AMOUNT_CACHED
- _SPECIAL_ABILITY_START_RESTORE
- _SPECIAL_ABILITY_SET_ACTIVATE
- _SPECIAL_ABILITY_SET_DISABLED
- _SPECIAL_ABILITY_SET_EAGLE_EYE_DISABLED
- _SECONDARY_SPECIAL_ABILITY_SET_ACTIVE
- _SECONDARY_SPECIAL_ABILITY_SET_DISABLED
- _SET_SPECIAL_ABILITY_ACTIVATION_COST
- _SET_SPECIAL_ABILITY_DISABLE_TIMER
- _SET_SPECIAL_ABILITY_DURATION_COST
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.