Hello, basically, I need ScriptEnforcer enabled on my server, but when SE is enabled ULIB fails to initialize client size because Garry forced SE to always block autorun scripts.
Let me repeat, this is not a problem with clientscripts.txt. My ScriptEnforcer is configured properly, the problem is that now that SE blocks autorun the autorun/ulib_init.lua script is forbidden to run on the client.
Now! I've tried to get around this annoyance using this server-side script;
function PSpawn(pl)
pl:SendLua("include(\"ULib/cl_init.lua\")")
pl:PrintMessage(HUD_PRINTTALK, "INIT ULIB!")
end
hook.Add( "PlayerInitialSpawn", "playerInitialSpawn", PSpawn );
The print was just so I knew it was working.
Now, when I have SE enabled without this script there are no errors BUT no commands work. Eg. "ulx help" doesn't return help, nor does it return any errors.
However, when I enable this script with SE on and try "ulx help" again, it displays help normally, but the client doesn't auto complete it. However, when trying to use "ulx clientmenu" with this script enabled, the console returns:
[ULIB] Error, received invalid lua
I was wondering if the ULX devs or just anyone who may know could give me some help on sucessfully initializing ULib
without autorun scripts.
Thanks
Reiko