Couldn't include file 'shared.lua'

Hello forum!
Recently I keep getting this error. I don’t know what’s wrong :suicide: , I have the shared.lua file…

Make sure in your cl_init.lua you have a line that says…


include( 'shared.lua' )

And in your init.lua you need to include it client and server side by doing…



include( 'shared.lua' )
AddCSLuaFile( "shared.lua" )


If that doesn’t work then it can mean that there is an error in lua stopping the file from being included. Go through your code and make sure everything looks good.

Everything is included, must be the code then …

According to your error shared.lua is not in your gamemode folder, check if shared.lua is in the folder or the code is correct .

It was in the code!
Deleted some garbage codes and then it started working.
Thanks for the help guys !