Anticheat: Difference between revisions
No edit summary |
No edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 12: | Line 12: | ||
The ''src'' attribute is for the file on your server, which is a relative path from your server's main folder. <br /> | The ''src'' attribute is for the file on your server, which is a relative path from your server's main folder. <br /> | ||
The ''path'' attribute is for the file in the client's game using a relative path from the game's folder. | The ''path'' attribute is for the file in the client's game using a relative path from the game's folder.<br /> | ||
You can add as many file entries to this as you want. | |||
== GTA IV == | |||
For GTA IV, there are other measures a server can take to help reduce cheaters: | |||
* Set the [[CVars|"trainers" cvar]] to 0, which will prevent players from using ZMenu to spawn things, use air break, and other cheats | |||
* Set the [[CVars|"scripts" cvar]] to 0, which turns off all built-in SCO game scripts, as some mod menus and trainers use custom game scripts. | |||
* Use [[gta.getActiveScripts|gta.getActiveScripts]] and [[gta.terminateScript|gta.terminateScript]] to see and kill game scripts. Useful if you learn some of the trainer's script names. | |||
* Set <synclocalentities> in [[ServerConfiguration|server.xml]] to false, which will prevent things that a player spawns from being synced to other players, including traffic and walking pedestrians. | |||
Other trainers besides ZMenu are not supported by GTAC. Some work and some don't. It's hit and miss. See a list of our [[GameModifications|supported mods]]. | |||
Latest revision as of 07:17, 25 June 2026
What is it?
Starting with server and client 1.4.0, an anticheat was added to allow servers to verify a player's game files. The server checks the specified files when a client connects, and if any don't match, the client is immediately disconnected. The server will display this in console, with disconnect reason "CRC check failed", and this will also be shown to the client in the chatbox after being disconnected.
How do I use it?
First, upload any files you want the server to verify to your server. You can place them in any folder you want, but creating a folder specifically for them will help keep things clean and organized. In your server config, add a section at the bottom like the example below:
<anticheat>
<file src="anticheat/handling.cfg" path="data/handling.cfg" />
</anticheat>
The src attribute is for the file on your server, which is a relative path from your server's main folder.
The path attribute is for the file in the client's game using a relative path from the game's folder.
You can add as many file entries to this as you want.
GTA IV
For GTA IV, there are other measures a server can take to help reduce cheaters:
- Set the "trainers" cvar to 0, which will prevent players from using ZMenu to spawn things, use air break, and other cheats
- Set the "scripts" cvar to 0, which turns off all built-in SCO game scripts, as some mod menus and trainers use custom game scripts.
- Use gta.getActiveScripts and gta.terminateScript to see and kill game scripts. Useful if you learn some of the trainer's script names.
- Set <synclocalentities> in server.xml to false, which will prevent things that a player spawns from being synced to other players, including traffic and walking pedestrians.
Other trainers besides ZMenu are not supported by GTAC. Some work and some don't. It's hit and miss. See a list of our supported mods.