AFK Mode Problem
gamemodes/scprp/gamemode/modules/afk/cl_afk.lua:1: attempt to index a nil value
1. unknown - gamemodes/scprp/gamemode/modules/afk/cl_afk.lua:1
2. include - [C]:-1
3. LoadModules - gamemodes/scprp/gamemode/cl_init.lua:26
4. unknown - gamemodes/scprp/gamemode/cl_init.lua:46
I changed my gamemode from darkrp to scprp and now the afk module is doing problems. If you type /afk now, you'll only get a black screen and the message is not there anymore.
Please help me guys.
What is the First line of code in your cl_afk.lua?
Sorry for late response, I wasn't able to go on my pc lately.
local TextColor = Color(GetConVar("Healthforeground1"):GetFloat(), GetConVar("Healthforeground2"):GetFloat(), GetConVar("Healthforeground3"):GetFloat(), GetConVar("Healthforeground4"):GetFloat())