Garry's Mod

Garry's Mod

Not enough ratings
[!Cake] Anti-cheat script errors / kick for no reason
By Warlord
This guide enables you to fix your Garry's Mod.
If you play on server using Cake Anti-Cheat truth engineering and you got your console overflooded with bunch of errors and might sometimes get you kicked / banned for (Anticheat report timed out), you're in the right place!
   
Award
Favorite
Favorited
Unfavorite
- Identification of the problem -

- You are cheating (obviously no if you're here)
- You are using custom .dll files
- You are using a Beta-branch

--- MAKE SURE YOU GOT A SIMILAR ERROR AS THOSE ONES IN YOUR CONSOLE ---
#-----------------------------------------------------------------------------------------------------------------------------------#
[ERROR] lua/.dragondildos/rc1/../nul/dc50d91c6203ca466ebeafeabce49f5d5185b71f643b6f57169666848b432dcc.lua:39: attempt to perform arithmetic on local '​‌‎‭‌' (a nil value)
1. ‪‌‌‬ - lua/.dragondildos/rc1/../nul/dc50d91c6203ca466ebeafeabce49f5d5185b71f643b6f57169666848b432dcc.lua:39
2. ‬‪‌ - lua/.dragondildos/rc1/../nul/dc50d91c6203ca466ebeafeabce49f5d5185b71f643b6f57169666848b432dcc.lua:727
3. ‬‎‎‪‎ - lua/.dragondildos/rc1/../nul/2b158c8dc6a77e0e30dc81c489accc385be3bc67471c0ef6692597b5f8fc54f5.lua:24
4. ‬‪​ - addons/cac/lua/includes/extensions/client/vehicle.lua:3133
5. func - addons/cac/lua/includes/extensions/client/vehicle.lua:2172
6. unknown - lua/includes/extensions/net.lua:32

#-----------------------------------------------------------------------------------------------------------------------------------#
[ERROR] addons/cac/lua/includes/extensions/client/vehicle.lua:1211: attempt to call field '​‎‎' (a nil value)
1. IsNPC - addons/cac/lua/includes/extensions/client/vehicle.lua:1211
2. unknown - lua/weapons/bobs_gun_base/shared.lua:179

NOTE : Your error might be a little different depending on what you do on the server.
Example : if you take a M9K weapon, you'll have :
2. ‬‪​ - addons/cac-release-2018/lua/includes/extensions/client/vehicle.lua:3133
instead OF :
2. unknown - lua/weapons/bobs_gun_base/shared.lua:179
- How to get rid of it -
- If you are cheating, stop doing that because obviously you are doing it wrong.
- If you do not want to factory reset your Garry's Mod before being certain of the issue here is what i recommend you :

- [ First step ]-
Firstly, for being sure the error is not caused by a broken dll or lua file, you'll have to get rid of EVERY beta branch you might be using for the game. Here is how to do it
Go to your steam games library > right click on Garry's Mod > Properties > Beta > Opt out of ALL beta programs


#-----------------------------------------------------------------------------------------------------------------------------------#


Note: to do that your game MUST be CLOSED.


- [ Second step ]-
If the first step has NOT fixed the error (TRY IT BEFORE ! ) the problem must come from a corrupted file > you'll need to factory reset your game but no worries, you only have one button to press, rest is done automatically.
Go to your game files (may look like this : C:\Program Files (x86)\Steam\steamapps\common\GarrysMod ) > then there is a .bat file called "Factory Reset -GMod"

> click on it (MAKE SURE TO SAVE ALL YOUR STUFF SUCH AS PAC3 / EXPRESSION 2 / DUPLICATIONS BEFORE !) > then follow the step printed by the Windows console.
Note: this operation last 1 minute
- For server owners ONLY -
If you are a server owner and use !Cake anti cheat
- If you use a leak, get rid of that as the addon is completely broken and might kick a lot of players for no reasons.

- If you do have paid the addon i recommend you asking the original author for an update of the addon (which i think he'll not do) otherwise ask for a refund and opt out of this addon as it is NOT reliable anymore.
4 Comments
Cutiepie Cooper Aug 29, 2019 @ 2:31pm 
or maybe, you know... not understand everything that is on the guide and post the first comment anyway:steambored:
Warlord  [author] Aug 29, 2019 @ 9:34am 
"Or just.." read the entire guide before posting
Warlord  [author] Aug 29, 2019 @ 9:12am 
This is what i wrote in the server owners section.. and maybe if you are a player playing on a server you can't ask the owner like "hello can you remove your anti-cheat ? "
Cutiepie Cooper Aug 29, 2019 @ 9:03am 
or just remove cake anti-cheat script as a owner, easy:steamsalty: