i have a problem that makes me crash (gmod)

I have this problem when I play on any dark RP server: Lua.panic not enough memory gmod. I have 8gb of ram and a good gaming pc. I have deleted all my addons and verified game files on steam, and deleted gmod and reinstalled it about 10-20 times. please help me idk what to do I have tried everything including -heapsize 8388608.