Hey I've a problem with my addon I have to reload my files (ctrl+s) to make them work otherwise they don't recognize my tables, even darkrp tables : "attempt to call method 'getDarkRPVar' (a nil value) " and after a simple refresh like save my files, it works I tried to put a timer but it seems it doesn't work would be nice if you could help me :)
Show code?
too much code
Then you don't get help.
Good luck!
Sounds like you're calling Player:getDarkRPVar too early.
I tried to load the file which contains that function with a timer.simple but it doesn't work
Would prolly be better to call the loading function inside a post init darkrp hook.
After looking at the darkrp wiki:
loadCustomDarkRPItems
seems like a good hook to use. It's called when its loading the external modules (DarkRPModification)
hook.Add("loadCustomDarkRPItems", "LoadMyFiles", funtion()
loadFiles()
end)
Sorry, you need to Log In to post a reply to this thread.