the best attempt at stopping hackers, is to keep all important data on the server, and keep as little game relevant data as possible from reaching the client. the problem is, plenty of useful data has to reach the client in order for the game to be playable, and plenty of ways to cheat do not require altering your game at all.
if a cheater decides to edit their opengl or directx drivers, in a way that makes the static meshes not render, or removes all masked and translucent particle effects, then there is not anything you could do to detect that. any cheat scanning functions you put into your game, can be found by hackers, and turned off with an assembly NOP command. any checksum of the games data sent over the server can be intercepted and spoofed. in order for enemies to be rendered on the clients machine, their locations will have to exist on that client, and using this data, they can make aim bots, which don’t have to edit the games code, they just have to mimic legitimate keyboard and mouse inputs or intercept and edit network packets to spoof movement commands, between server and client. at the end of the day, its your assembly code vs theirs, and since its running on their machine, they get the last word in that battle.
no game can prevent hackers. the best you can do is make it slightly more difficult for them, and catch them when they publish their hacks online, and make specific updates to detect popular attacks, and ban those cheaters from your servers.
I doubt you will get in depth tutorials for making anti cheat functionality, since its an unsolved problem, every attempt is custom built for every game, and its mostly just following good network programming practices, by not trusting the client with any more information than what is vital for the game to run. any tricks you add on top of that, have been tried before, and can be undone by hackers. hackers vs developers is an ongoing arms race that hackers have consistently won throughout history, and i don’t see that changing in the future, because hackers have 1 job and a lot of free time, while developers are busy and have a ton of other things to worry about.
the best way to avoid hackers being a problem, is to make a less popular, less competitive game, and add your own cheats built into the game, so hackers feel like their efforts could be better spent on adding cheats to something else. provide a space for cheaters to enjoy the game their way, so that they don’t have any incentive to use cheat software from a third party.
these might help: