Help, I can't figure out how to enable the propmenu.

Hi, I am new to lua, and by new I mean very new. Me and my friend decided to start and rp gamemode to help us learn. So far everything is going smoothly we have made a hud some jobs, and a scoreboard just for starters. The one thing I cannot figure out how to do is enable the prop menu. I have tried the following and nothing works, I just get a lua error.

function SANDBOX:SpawnMenuEnabled()
return true
end

function GM:SpawnMenuEnabled()
return true
end

function SANDBOX:SpawnMenuEnabled()
return true;
end

function GM:SpawnMenuEnabled()
return true;
end

I found all of these on the gmod wiki or in the older http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index7a06.html

please help me out.

Are you using the base gamemode as your base, or the sandbox gamemode.

I’m sure that you can edit the base to sandbox in your gamemode text file, look at how its done here

I changed it to sandbox, but we still have to enable the menu which is giving us more trouble than ever.