Hi,
For some reason hooks are not working for me on an addon im making, but they work of other addons.
File structure:
addons/testsavetables/lua/autorun/init.lua
addons/testsavetables/addon.txt
init.lua :
hook.Remove("PlayerInitialSpawn", "stupidgmodcrap")
hook.Add("PlayerInitialSpawn", "stupidgmodcrap", function(ply)
print("\n\ntest\n\n")
end)
I have tried restarting the server multiple times, but nothing is working. I have removed recently added stuff, that hasn't fixed it.
not that this file means anything but,
addon.txt :
"AddonInfo"
{
"name" "Tables"
"version" "1"
"up_date" "04/12/2017"
"author_name" "Cpt Rawr"
"info" "Save table test."
"override" "0"
}
I have spent hours trying to figure this out, but I don't understand why this isn't working, it looks fine to me..
Does adding a print to the base file work? If not try renaming the init.lua file, these directories are shared by all addons so it's possible something is overwriting it.
Renaming the file worked, thank you
Sorry, you need to Log In to post a reply to this thread.