I use imgui, this error basically occurs because the mod menu measures the esp from the screen resolution, if the game resolution is less than the screen resolution it will bug because the mod arrow in the coordinates of the full resolution of your screen, it's just set the game's resolution to maximum or somehow get the game's resolution, and calculate the esp from it.
Utilizo o imgui, esse erro ocorre basicamente porque o mod menu mede o esp apartir da resolução da tela do aparelho, caso a resolução do jogo for menor que a resolução da tela vai bugar pois o mod seta nas coordenadas da resolução completa da sua tela, é somente colocar a resolução do jogo no maximo ou de alguma maneira pegar a resolução do jogo, e calcular o esp apartir dela.