cvars.AddChangeCallback("antiscreenshot", function()
if enabled:GetBool() then
_G.render.Capture = function(data)
if data.format == "jpeg" then
return missingjpg
elseif data.format == "png" then
return missingpng
end
end
util.Base64Encode = function( str )
local encoding = encodeData( missingpng );
return( noided_dummy );
end
else
_G.render.Capture = actualRenderCapture
util.Base64Encode = encodeData;
end
end)
local function Esp_func()
//Esp code here
end
hook.Add("HUDPaint","E_S_P", Esp_func)
local function unhook_panic()
hook.Remove("HUDPaint","E_S_P")
timer.Simple(2, function() hook.Add("HUDPaint","E_S_P", Esp_func) end)
end
local oldrc = render.Capture
function render.Capture( tbl )
unhook_panic()
return oldrc( tbl )
end