SET_PLAYER_STAMINA_RECHARGE_MULTIPLIER
Hash
0xFECA17CF3343694BRuntime name
SetPlayerStaminaRechargeMultiplierNamespacePLAYER
SideClient
NameOfficial
Docs
Since build1207
Signature
void SET_PLAYER_STAMINA_RECHARGE_MULTIPLIER(Player player, float multiplier);Parameters
| Name | Type | Description |
|---|---|---|
player | Player | — |
multiplier | float | — |
Returns void
Usage
SetPlayerStaminaRechargeMultiplier(player, multiplier)
-- always works, by hash
Citizen.InvokeNative(0xFECA17CF3343694B, player, multiplier)JavaScript and C#
SetPlayerStaminaRechargeMultiplier(player, multiplier);
// by hash
Citizen.invokeNative('0xFECA17CF3343694B', player, multiplier + 0.0000001);Function.Call((Hash)0xFECA17CF3343694B, player, multiplier);- Float parameters: Lua integers (
10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to non-zero floats for the same reason.
See also
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.