• Is there a way to get all client convar ?
    9 replies, posted
Hi. I'm trying to make a script to check client convar, people are able to run cl lua script on my server and i don't understand how. I would like to check the convars to figure it out.
YOUR server needs to disable clientside lua, it's not like they enable it for themselves.
You can enable cvars for yourself with cheats. Having cvars disabled on the server doesn't guarantee anything.
@ubre i did disable it people can still run lua with cheats :/
Get an anti-cheat then
Just run a lua script on the client to get their convar value and just net send it to the server for a reply.
But how can i get a list of all client's convars?
The best thing to do would be to get an anticheat. You could try using a Lua script to get their convar value but they can easily spoof that back to 0, which anticheats try to prevent.
Anti cheat are quite resource intensive. I have profiled few servers running anticheats and top #1 addon that was most resource intensive on clients were "dragon dildo" (aka, CAC). And even then they're not 100% proof, there are multiple cheats floating around online that bypasses the best anticheats.
go to garrysmod/addons/darkrpmodification/lua/darkrp_disabledefaults/settings.lua and find disallowClientsideScripts on line #45 and set it to true It should look like this: -- disallowClientsideScripts - Clientside scripts can be very useful for customizing the HUD or to aid in building. This option bans those scripts. GM.Config.disallowClientsideScripts     = false //set this to true
Sorry, you need to Log In to post a reply to this thread.