Hello, so I currently have a script to show where a player is… It draws a hud on the player’s feet and can be seen through walls. Now under the right conditions, this is alright however the client can simply change the var and turn this feature on or off whenever they please AND they can change who this is directed towards.
hook.Add("HUDPaint", "CustomblahblahHUDPaint", function()
for k, v in pairs(player.GetAll()) do
if v == LocalPlayer().theentitytoshow then
-- draw stuff here
end
end
end)
Now using lua_run_cl the client can change LocalPlayer()/theentitytoshow to anyone they want and bam now they have a wall hack (i set this var from the server to nil when i want to turn this off)
Now I looked into using SetNWEntity() and GetNWEntity() however it seems that that can also be changed with the client… So I’m completely lost on what to do… Any help would be appreciated thanks