• ScriptEnforcer queries.
    5 replies, posted
So, I've never dabbled with it much and the wiki seems a bit incomplete on the subject. I've set the cvar to 1 and it's all working fine. However how do I whitelist specific clientside files, I've tried creating a file called clientscripts.txt in: garrysmod/gamemodes/modename/clientscripts.txt I added a file to there but it had no effect. I know garrysmod generates it's own whitelist now but I would still like to whitelist a few of my own files that are clientside. I pretty much need to be told how to whitelist files. I'm used to using saitohud, since I don't really play on the servers unless I need to fix stuff and it just helps so damn much. I've tried adding SaitoHud as a serverside addon and limiting the users that way, but not gotten very far with that yet. And I don't suppose it's possible to whitelist users to be immune from SE? If not, why not ;)
I've always got around it by adding them serverside then using AddCSLuaFile to make sure they're in the cache, I wasn't aware there was a way to whitelist certain scripts.
[QUOTE=Drakehawke;36130085]I've always got around it by adding them serverside then using AddCSLuaFile to make sure they're in the cache, I wasn't aware there was a way to whitelist certain scripts.[/QUOTE] I am trying this at the moment, I mean it's a great solution as it would allow me to limit who can use it as well. But so far I am failcaking :) [editline]30th May 2012[/editline] Maybe someone can see where I've gone wrong [lua] AddCSLuaFile("client/sautohud_init.lua") AddCSLuaFile("saitohud/concmd.lua") AddCSLuaFile("saitohud/filters.lua") AddCSLuaFile("saitohud/friends.lua") AddCSLuaFile("saitohud/functions.lua") AddCSLuaFile("saitohud/geom.lua") AddCSLuaFile("saitohud/init.lua") AddCSLuaFile("saitohud/overlays.lua") AddCSLuaFile("saitohud/saitohud.lua") AddCSLuaFile("saitohud/modules/calculator.lua") AddCSLuaFile("saitohud/modules/e2_extensions.lua") AddCSLuaFile("saitohud/modules/entity_info.lua") AddCSLuaFile("saitohud/modules/geom.lua") AddCSLuaFile("saitohud/modules/hook_manager.lua") AddCSLuaFile("saitohud/modules/listguest.lua") AddCSLuaFile("saitohud/modules/measure.lua") AddCSLuaFile("saitohud/modules/overlays.lua") AddCSLuaFile("saitohud/modules/panel.lua") AddCSLuaFile("saitohud/modules/player_tags.lua") AddCSLuaFile("saitohud/modules/resbrowser.lua") AddCSLuaFile("saitohud/modules/sampling.lua") AddCSLuaFile("saitohud/modules/spectate.lua") AddCSLuaFile("saitohud/modules/stranded.lua") AddCSLuaFile("saitohud/modules/survery.lua") AddCSLuaFile("saitohud/modules/umsg.lua") AddCSLuaFile("saitohud/modules/util.lua") AddCSLuaFile("saitohud/modules/winamp.lua") AddCSLuaFile("saitohud/vgui/DCustomListView.lua") AddCSLuaFile("saitohud/vgui/DListView_CheckboxLine.lua") [/lua] Files are SVN from [url]http://saitohud.googlecode.com/svn/trunk/src/SaitoHUD/[/url] [editline]30th May 2012[/editline] I placed that lua inside a file @ lua/autorun/shud_clientincludes.lua
Whenever I've included/AddCSLua'ed from autorun I've found it doesn't seem to be relative to autorun/, but actually lua/, try changing the first one to autorun/client/sautohud_init.lua
[QUOTE=Drakehawke;36130479]Whenever I've included/AddCSLua'ed from autorun I've found it doesn't seem to be relative to autorun/, but actually lua/, try changing the first one to autorun/client/sautohud_init.lua[/QUOTE] I did try this after, with now effect. However I did notice that the directory of init.lua is lua/saitohud/init.lua but the AddCSLuaFile is being executed from lua/autorun so maybe that's causing some hiccups?
AddCSLuaFile("client/sautohud_init.lua") Shouldn't that be "saitohud_init.lua" (it is on the SVN link you posted)? typo? :v:
Sorry, you need to Log In to post a reply to this thread.