Garry's Mod

Garry's Mod

View Stats:
How to fix the "constant lua errors"
The new update has broke a lot of stuff, mostly because of the new blocked cmd"s. Don't worry though, since it is fairly easy to fix.
All you need to do is override GMod's core lua temporarily. Here's how you can do that:
  1. First, find the file that that error was coming up in. Usually, lua/includes/extensions/player.lua
  2. Now, you'll need to find:function meta:ConCommand( command, bSkipQueue )

    if ( bSkipQueue ) then
    SendConCommand( self, command )
    else
    CommandList = CommandList or {}
    table.insert( CommandList, command )
    end

    end

  3. And finally, replace it with:
    function meta:ConCommand( command, bSkipQueue )

    if string.match(command, "con_filter_") then
    ErrorNoHaltWithStack(command)
    end

    if ( bSkipQueue ) then
    SendConCommand( self, command )
    else
    CommandList = CommandList or {}
    table.insert( CommandList, command )
    end

    end

If you've done all correctly, you should now see additional errors coming up. These are the incompatible add-ons, and will cause errors from now on, for instance: [Example addon] con_filter_enable 1
1. ConCommand - lua/includes/extensions/player.lua:118
...


And that was it. Make sure to be careful with the syntax, and you should be all set!

Tip: You can just simply restore the old syntax if you want the additional errors to stop.
Last edited by mattszymanko; Jun 9, 2021 @ 3:44pm
< >
Showing 1-15 of 26 comments
Phantom Jun 9, 2021 @ 4:29pm 
I assume they won't fix this huh
mattszymanko Jun 10, 2021 @ 12:30am 
Originally posted by BigManJones:
I assume they won't fix this huh
Probably no - Especially if you were using a mod no longer in development. But this at least gives you an idea about which mod is causing it, so you can easily disable it and get rid of the constant errors.
mattszymanko Jun 11, 2021 @ 2:19am 
Originally posted by synthpilot:
Thank you so much! Support wasn't of much help besides telling me to wipe my entire addons list and the posts on Reddit and here about this are people complaining and not helping. What ended up being the issue is the Asiimov Swep pack.
Always glad to help. :)
Phλe Jun 16, 2021 @ 10:05pm 
I can't find the "lua/includes/extensions/player.lua" file.
mattszymanko Jun 17, 2021 @ 1:33am 
Originally posted by Nightpsher:
I can't find the "lua/includes/extensions/player.lua" file.
Just head to steamapps/common, as usual. After that, open Garry's Mod/garrysmod/lua/includes/extensions/player.lua
Sheepy Jun 17, 2021 @ 5:12am 
THANK YOU!! This worked for me!! After following the steps here, it then showed me "Counter Strike: Global Offensive - M4A1-S Decimator Swep" was causing the errors.. so i unsubbed to that and restarted gmod.. and ALL ERRORS GONE!! Yippeeee
mattszymanko Jun 17, 2021 @ 5:30am 
Originally posted by Sheepy:
THANK YOU!! This worked for me!! After following the steps here, it then showed me "Counter Strike: Global Offensive - M4A1-S Decimator Swep" was causing the errors.. so i unsubbed to that and restarted gmod.. and ALL ERRORS GONE!! Yippeeee
No problem. :)
SecretMessage Jun 17, 2021 @ 2:19pm 
I can't find function meta:ConCommand( command, bSkipQueue )
mattszymanko Jun 17, 2021 @ 3:37pm 
Originally posted by SecretMessage:
I can't find function meta:ConCommand( command, bSkipQueue )
It should be at the beginning of the file. It's hard to miss it, so just keep looking.
Cosmonaut Jun 17, 2021 @ 3:38pm 
This really helped, thank you.
xonark Jun 17, 2021 @ 4:16pm 
IT WORKED! The error was this M4A1-S Chanticos Fire addon.
SecretMessage Jun 18, 2021 @ 11:03am 
I found it, do i delete the old one and replace it?
mattszymanko Jun 18, 2021 @ 12:27pm 
Originally posted by SecretMessage:
I found it, do i delete the old one and replace it?
Yes, exactly. Just delete the fragment shown in the original post, replace it, and that's it.
MarcusTheBruh Jun 21, 2021 @ 4:31am 
What program can run a lua file?
mattszymanko Jun 21, 2021 @ 4:52am 
Originally posted by marcusjensley4:
What program can run a lua file?
What? I don't really get what you mean.
< >
Showing 1-15 of 26 comments
Per page: 1530 50

Date Posted: Jun 9, 2021 @ 3:29pm
Posts: 26