I would like a timer that calls a function every x time, on my DarkRP server.
So, I made an addon folder to decouple it and added an init.lua file:
With the code:
function GameInitialize() timer.Create("lightTimer", 10, 0, PrintMessage(HUD_PRINTTALK, "Light mod message")) end hook.Add("Initialize", "gameInit", GameInitialize)
The console shows on start up that it is found and mounted, yet nothing happens.
What am I doing wrong?