I’d used to dealing with entry points and namespaces so modding in Lua involves a different mind-set for me. I’d like to add a light cycle to my map so I thought a simple way would be to have a timer that’s used continuously to regulate light level related variables/functions. For something so general where would be a good place to put this, given I’m hosting DarkRP?
I think what you’re possibly looking for is timer.Create
Yeah I know the function to use but where should I call it from? Where’s the entry point? Or is it enough to put it in an init file under its own addon folder?
If it’s darkrp, make it a addon.