{"hash":"0xC3D4B754C0E86B9E","ns":"PED","name":"_CHANGE_PED_STAMINA","slug":"_CHANGE_PED_STAMINA","official":false,"named":true,"luaName":"ChangePedStamina","game":"rdr3","apiset":"client","returnType":"BOOL","params":[{"name":"ped","type":"Ped"},{"name":"amount","type":"float"}],"summary":"Alters entity's stamina by 'amount'.","descriptions":[{"source":"alloc8or","format":"text","body":"Alters entity's stamina by 'amount'. Can be negative (to drain stamina). float amount: -1000.0 - 1000.0"}],"examples":[],"aliases":[],"enums":[],"related":["0x775A1CA7893AA8B5","0x36513AFFC703C60D","0x675680D089BFA21F"],"build":"1207","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/PED/_CHANGE_PED_STAMINA","markdownUrl":"https://natives.borderlinerp.com/natives/PED/_CHANGE_PED_STAMINA.md","snippets":{"lua":"local retval = ChangePedStamina(ped, amount)","luaInvoke":"local retval = Citizen.InvokeNative(0xC3D4B754C0E86B9E, ped, amount, Citizen.ReturnResultAnyway())","js":"const retval = ChangePedStamina(ped, amount);","jsInvoke":"const retval = Citizen.invokeNative('0xC3D4B754C0E86B9E', ped, amount + 0.0000001, Citizen.returnResultAnyway());","csharp":"bool retval = Function.Call<bool>((Hash)0xC3D4B754C0E86B9E, ped, amount);","notes":["Float parameters: Lua integers (`10`, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write `10.0` or `value + 0.0`. The generated JS wrappers add `0.0000001` to 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 `InvokeNative` with the hash — it always works."]}}