Garry's Mod

Garry's Mod

89 ratings
How to fix Gmod LUA PANIC Not enough memory
By Garje
Have you not been able to play gmod because of it crashing everytime you finish loading onto a server ? well i found a fix thats really simple and anyone can do at any time aslong as you have access to the computer that gmod is crashing on.
2
   
Award
Favorite
Favorited
Unfavorite
Step .1
Firstly go into steam and find Gmod in your library then right click on gmod and click properties.


Step .2
After going into properties click SET LAUNCH OPTIONS...



Step .3
now there should be a box that you can type into on your screen,
to fix the LUA problem you need to type in one of the following corresponding you your ram.







If you have 2GB of ram type in

-heapsize 2097152

If you have 4GB of ram type in

-heapsize 4194304

if you have 8GB of ram type in

-heapsize 8388608

After typing in the command, launch Gmod and load onto a server, if this didn't work and you still crash,
Try typing in the lower amount of ram, for example

if you have 8GB you would type in the one for 4GB

and if you have 4 you would type in for the one with 2GB

but i couldn't find the command for 2 gb of ram, if you do only have 2GB of ram i recommend upgrading to at least 4 or 8, i would say 8 is the perfect amount for gaming. if this doesn't work try to only run gmod on your pc not google chrome or any other apps
123 Comments
chriskim0918 17 Apr @ 8:26am 
how about 32gb type?
Dmxspy 10 Oct, 2024 @ 6:07pm 
@The Doctor, I'm pretty sure you do not have "200 GB of memory" If you do and you still need help, computers probably are not for you.....give up and buy a xbox or ps5 lol cause you ain't computer-ing right.

You Mostly likely have over 200 gb of Storage. Not RAM memory.
Крокодил Ввену 8 Mar, 2024 @ 2:15am 
just multiply your gigabytes on 1024^2 or 2^20 and u will get size in megabytes
Azunyan Nyakano 2 Feb, 2024 @ 3:11pm 
just do 8 + 4 + 2 if you have 14gb ram
which is 8388608 + 4194304 + 2097152 I think?
Bunklet 2 Feb, 2024 @ 9:53am 
What if I have 14gb of ram?
alan8203 25 Jun, 2023 @ 1:37am 
for 16GB type -heapsize 16777216
14trees 15 May, 2023 @ 11:14pm 
@vek lft mid spy convert 200gb to kb and put in the resulting number in place of the number
vek 11 Apr, 2023 @ 9:08am 
i have more than 200gb of memory tf do i do
Burnin_BALLoF_flame 20 Jan, 2023 @ 12:38pm 
i have 48g of ram and im still getting this problem
Zero Jyllmeiko 11 Oct, 2022 @ 6:47pm 
Do I put in the total RAM I have, or the amount of RAM I have available?