[HELP] GetPedStamina in JavaScript

When I call this native in JS/TS it returns some insane number like 1107715686.

Citizen.invokeNative("0x775A1CA7893AA8B5", id);

When I call same native in C# then value is around 0 - 100.

Function.Call<float>((Hash)0x775A1CA7893AA8B5, Id);

Am I doing something wrong or is it a bug?


You have to actually add Citizen.resultAsFloat() as a last parameter. Then value is correct.