The Lab
PLAYER native

_SPECIAL_ABILITY_RESTORE_BY_AMOUNT

returns void5 paramsbuild 1207

Restores the special ability meter of player by amount.

Signature

C
void _SPECIAL_ABILITY_RESTORE_BY_AMOUNT(Player player, float amount, int p2, int p3, int p4); // 0x51345AE20F22C261 b1207

Parameters

#NameType
1playerPlayer
2amountfloat
3p2int
4p3int
5p4int

Facts

Facts about _SPECIAL_ABILITY_RESTORE_BY_AMOUNT
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.

Lua
Citizen.InvokeNative(0x51345AE20F22C261, -- _SPECIAL_ABILITY_RESTORE_BY_AMOUNT
  PlayerId(), -- Player player
  0.0, -- float amount
  0, -- int p2
  0, -- int p3
  0 -- int p4
)
JavaScript
// 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
);
C#
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
);
All PLAYER natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.