The Lab
PLAYER native

_SPECIAL_ABILITY_DRAIN_BY_AMOUNT

returns void3 paramsbuild 1207

Drains the special ability meter of player by amount.

Signature

C
void _SPECIAL_ABILITY_DRAIN_BY_AMOUNT(Player player, float amount, Any p2); // 0x200114E99552462B b1207

Parameters

#NameType
1playerPlayer
2amountfloat
3p2Any

Facts

Facts about _SPECIAL_ABILITY_DRAIN_BY_AMOUNT
Name
_SPECIAL_ABILITY_DRAIN_BY_AMOUNT
Hash
0x200114E99552462B
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(0x200114E99552462B, -- _SPECIAL_ABILITY_DRAIN_BY_AMOUNT
  PlayerId(), -- Player player
  0.0, -- float amount
  0 -- Any p2
)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0x200114E99552462B", // _SPECIAL_ABILITY_DRAIN_BY_AMOUNT
  PlayerId(), // Player player
  0.0, // float amount
  0 // Any p2
);
C#
Function.Call((Hash)0x200114E99552462B, // _SPECIAL_ABILITY_DRAIN_BY_AMOUNT
  API.PlayerId(), // Player player
  0.0f, // float amount
  0 // Any p2
);
All PLAYER natives

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