Keep Calling GM Functions yet they error for nil ply value

Everytime I use a GM: function it says something along the lines like:

Attempt to index Global GM: (a nil value)

I don’t understand Why I am using the correct function names…


GM:AddNotify("Current Team: Citizen", NOTIFY_GENERIC, 5);

I use that Inside of another one. (Which for some reason works but it wasn’t working a while ago.

If I remember well you can only use GM while defining your gamemode. Afterwards you need to use GAMEMODE

More details here : **[Internal gamemode workings]( gamemode workings)**