Garry's Mod

Garry's Mod

91 betyg
How to fix Gmod LUA PANIC Not enough memory
Av 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
   
Utmärkelse
Favorit
Favoritmarkerad
Avfavoritmarkerad
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
124 kommentarer
Mei (ˢʰᵉ/ʰᵉʳ) 21 sep @ 9:57 
@chrisskim0918 so times the 2 gb one by 16 so (2098152 x 16)
OREO 17 apr @ 8:26 
how about 32gb type?
Dmxspy 10 okt, 2024 @ 18:07 
@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.
just multiply your gigabytes on 1024^2 or 2^20 and u will get size in megabytes
Azunyan Nyakano 2 feb, 2024 @ 15:11 
just do 8 + 4 + 2 if you have 14gb ram
which is 8388608 + 4194304 + 2097152 I think?
Bunklet 2 feb, 2024 @ 9:53 
What if I have 14gb of ram?
alan8203 25 jun, 2023 @ 1:37 
for 16GB type -heapsize 16777216
14trees 15 maj, 2023 @ 23:14 
@vek lft mid spy convert 200gb to kb and put in the resulting number in place of the number
veksutin 11 apr, 2023 @ 9:08 
i have more than 200gb of memory tf do i do
Magic Mountain 20 jan, 2023 @ 12:38 
i have 48g of ram and im still getting this problem