Checking user FPS without hassle, just need to toggle the monitor and you can use the function anywhere you want.
Simply install to your project:
sampctl package install ohmypxl/samp-fps
Include in your code and begin using the library:
#include <fps>
This include only have 2 functions:
TogglePlayerFpsMonitor(playerid, bool:set);
GetPlayerFps(playerid);
In order to get the fps, you need to enable it first using TogglePlayerFpsMonitor(playerid, true)
(This can be placed in the places like OnPlayerConnect
or some user settings function), after that you can start using GetPlayerFps
to check current player FPS.
To test, simply run the package:
sampctl package run