_RESTORE_PED_STAMINA
0.0 <= stamina <= 100.0
Hash
0x675680D089BFA21FRuntime name
RestorePedStaminaNamespacePED
SideClient
NameCommunity guess
Docs
Since build1207
Signature
void _RESTORE_PED_STAMINA(Ped ped, float stamina);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
stamina | float | — |
Returns void
Description
0.0 <= stamina <= 100.0
Usage
RestorePedStamina(ped, stamina)
-- always works, by hash
Citizen.InvokeNative(0x675680D089BFA21F, ped, stamina)JavaScript and C#
RestorePedStamina(ped, stamina);
// by hash
Citizen.invokeNative('0x675680D089BFA21F', ped, stamina + 0.0000001);Function.Call((Hash)0x675680D089BFA21F, ped, stamina);- 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. - The name is a community guess and may change. If the named call is missing in your client build, use
InvokeNativewith the hash — it always works.
See also
_CHANGE_PED_STAMINAAlters entity's stamina by 'amount'._GET_PED_STAMINA_RESET_PED_STAMINA
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.