forked from ticzz/Aimware-v5-luas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAnti-Lagonpeek.lua
41 lines (27 loc) · 1.13 KB
/
Anti-Lagonpeek.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
--[[--------------------------------------Credits---------------------------------------------------
Anti-Lagonpeek made by GLadiator
Found by Soufiw
------------------------------------------Credits-----------------------------------------------]]--
local CanEnable = false
local Enabled = false
callbacks.Register( 'Draw', 'AntiLagOnPeek', function( )
if not entities.GetLocalPlayer( ) or Enabled == true then
return
end
if not entities.GetLocalPlayer( ):IsAlive( ) then
CanEnable = true
else
CanEnable = false
end
if CanEnable then
client.Command( 'jointeam 1', true )
client.SetConVar( 'cl_lagcompensation', 0, true )
Enabled = true
end
end )
callbacks.Register( 'Unload', function( )
client.Command( 'jointeam 1', true )
client.SetConVar( 'cl_lagcompensation', 1, true )
end )
--***********************************************--
print("♥♥♥ " .. GetScriptName() .. " loaded without Errors ♥♥♥")