Ulysses
Ulysses Stuff => General Chat & Help and Support => Topic started by: Monskiller on April 27, 2016, 02:17:43 PM
-
Is it possible to allow clientside lua for a specific group/rank with ULX?
I'd like to allow trusted people the ability to load their custom HUDs. And restrict it from everyone else.
-
Unless there is another way (while sv_allowcslua is set to 1) to prevent clientside lua to be run, I'm going to guess no as it is a server-side cvar meaning it will apply to all players.
-
roastchicken is correct here. There's no way (that I know of) to do this.
-
After all is said and done though, someone writing a modular / changeable multiple choice server controlled HUD system is an awesome project idea.
Gamemode HUDs are controlled server-side for connecting clients, who's to say there isn't some way to allow different ones?
At worst, the player would have to re-connect to initialize maybe. At best, change on the fly.
-
After all is said and done though, someone writing a modular / changeable multiple choice server controlled HUD system is an awesome project idea.
Gamemode HUDs are controlled server-side for connecting clients, who's to say there isn't some way to allow different ones?
At worst, the player would have to re-connect to initialize maybe. At best, change on the fly.
That would be awesome.
Allow players to code/upload their own custom HUDs. In sandbox at least since on other gamemodes (TTT, DarkRp, Murderer) could be used for cheating.
It's the only reason I would want sv_allowcslua.
-
If my memory serves me correctly, there was (and maybe still is) a script on ScriptFodder that had some HUD-switching functionality but I think it was only for TTT. I don't think it would be very difficult to make a simple Derma menu to switch between different HUDs. I guess theoretically you could allow players to run custom lua via a menu element and (http://wiki.garrysmod.com/favicon.ico) Player:SendLua (http://wiki.garrysmod.com/page/Player/SendLua) or the net library but that would be extremely vulnerable to exploitation. I think the best way would be to have players send lua code to you so you can vet it, and then add it to a list of options in a HUD-switcher of sorts.
-
I'm with roastchicken.
You do not want end users just running random code, HUD or not.
My general idea was along what it sounds like roastchicken possibly saw elsewhere - the server owner controls all HUDs, and simply allows players to choose/change between them.
-
You could look at ulx luarun and adopt it to your use.