Megiddo, (or anyone)
After 2 days (apx 5 hours) of various testing/troubleshooting/pulling hair/fussing at wife about what I thought were my table issues, etc etc etc, I found a problem I have in some code I'm writing somehow involves your script. (_Not_ saying its your fault, but, its conflicting with your code somehow, through my bad code, or your good code with oddity)
I'm still playing with the targetting code mentioned in two other posts.
(Have come a looong way too I think)
With inexperience, I was using a 'function onPlayerActive()' command instead of a HookEvent(Playeractive)
Though that worked fine, it seems to have broken other ULX stuff.
Now that I've fixed that and other ULX stuff seems to work, mine doesn't work when I place it in the lua/init folder.
However, if I lua_openscript init/myscript.lua before I join my server, it detects me fine.
(Note: My code doesn't depend on any ulx commands)
I also tested by putting my script in the ULX Modules folder.
It works. Even though it doesn't use ulx variables/commands.
So, I searched your code for onPlayerActive, found several hookevents (in ulx_util and ulx_fun I think)
SOME of them have 'return's in them. Some don't.
I've tried adding 'return true' to the bottom of my hookevent code, however, same results, my code doesn't initialize.
Is this a Gmod/Lua bug? Any thoughts as to whats not working? Do 'return' need to be added to some of your code?