@@ -6,15 +6,15 @@ local function updatePlayerActivity(client)
66 client :setNetVar (" lastActivity" , CurTime ())
77end
88
9- function MODULE :KeyPress (client , _key )
9+ function MODULE :KeyPress (client )
1010 updatePlayerActivity (client )
1111end
1212
13- function MODULE :PlayerButtonDown (client , _button )
13+ function MODULE :PlayerButtonDown (client )
1414 updatePlayerActivity (client )
1515end
1616
17- function MODULE :PlayerSay (client , _text , _teamChat )
17+ function MODULE :PlayerSay (client )
1818 updatePlayerActivity (client )
1919end
2020
@@ -26,25 +26,25 @@ function MODULE:PlayerTick(client)
2626 if speed > 10 then updatePlayerActivity (client ) end
2727end
2828
29- function MODULE :PlayerUse (client , _entity )
29+ function MODULE :PlayerUse (client )
3030 updatePlayerActivity (client )
3131end
3232
33- function MODULE :PlayerEnteredVehicle (client , _vehicle , _role )
33+ function MODULE :PlayerEnteredVehicle (client )
3434 updatePlayerActivity (client )
3535end
3636
37- function MODULE :PlayerLeaveVehicle (client , _vehicle )
37+ function MODULE :PlayerLeaveVehicle (client )
3838 updatePlayerActivity (client )
3939end
4040
41- function MODULE :EntityTakeDamage (target , _dmgInfo )
41+ function MODULE :EntityTakeDamage (target )
4242 if not lia .config .get (" AFKProtectionEnabled" , true ) then return end
4343 if not IsValid (target ) or not target :IsPlayer () then return end
4444 updatePlayerActivity (target )
4545end
4646
47- function MODULE :PlayerCommand (client , _command , _arguments )
47+ function MODULE :PlayerCommand (client )
4848 updatePlayerActivity (client )
4949end
5050
@@ -58,7 +58,7 @@ function MODULE:PlayerReceiveNet(client, netString)
5858 end
5959end
6060
61- net .Receive (" liaAFKActivity" , function (_len , client )
61+ net .Receive (" liaAFKActivity" , function (_ , client )
6262 if not IsValid (client ) then return end
6363 updatePlayerActivity (client )
6464end )
@@ -86,37 +86,37 @@ function MODULE:InitializedModules()
8686 end )
8787end
8888
89- function MODULE :CanPlayerBeTiedUp (_client , target )
89+ function MODULE :CanPlayerBeTiedUp (_ , target )
9090 if not lia .config .get (" AFKProtectionEnabled" , true ) then return end
9191 if target :getNetVar (" isAFK" ) then return false , " This player is AFK and cannot be restrained." end
9292end
9393
94- function MODULE :CanPlayerBeUntied (_client , target )
94+ function MODULE :CanPlayerBeUntied (_ , target )
9595 if not lia .config .get (" AFKProtectionEnabled" , true ) then return end
9696 if target :getNetVar (" isAFK" ) then return false , " This player is AFK and cannot be unrestrained." end
9797end
9898
99- function MODULE :CanPlayerBeArrested (_client , target )
99+ function MODULE :CanPlayerBeArrested (_ , target )
100100 if not lia .config .get (" AFKProtectionEnabled" , true ) then return end
101101 if target :getNetVar (" isAFK" ) then return false , " This player is AFK and cannot be arrested." end
102102end
103103
104- function MODULE :CanPlayerBeUnarrested (_client , target )
104+ function MODULE :CanPlayerBeUnarrested (_ , target )
105105 if not lia .config .get (" AFKProtectionEnabled" , true ) then return end
106106 if target :getNetVar (" isAFK" ) then return false , " This player is AFK and cannot be unarrested." end
107107end
108108
109- function MODULE :CanPlayerBeStunned (_client , target )
109+ function MODULE :CanPlayerBeStunned (_ , target )
110110 if not lia .config .get (" AFKProtectionEnabled" , true ) then return end
111111 if target :getNetVar (" isAFK" ) then return false , " This player is AFK and cannot be stunned." end
112112end
113113
114- function MODULE :CanPlayerBeKnockedOut (_client , target )
114+ function MODULE :CanPlayerBeKnockedOut (_ , target )
115115 if not lia .config .get (" AFKProtectionEnabled" , true ) then return end
116116 if target :getNetVar (" isAFK" ) then return false , " This player is AFK and cannot be knocked out." end
117117end
118118
119- concommand .Add (" lia_afk_status" , function (client , _cmd , _args )
119+ concommand .Add (" lia_afk_status" , function (client )
120120 if not IsValid (client ) then return end
121121 print (" [AFK] Player AFK Status:" )
122122 for _ , ply in ipairs (player .GetAll ()) do
@@ -131,7 +131,7 @@ concommand.Add("lia_afk_status", function(client, _cmd, _args)
131131 end
132132end )
133133
134- concommand .Add (" lia_afk_toggle" , function (client , _cmd , _args )
134+ concommand .Add (" lia_afk_toggle" , function (client )
135135 if not IsValid (client ) or not client :IsAdmin () then return end
136136 local currentValue = lia .config .get (" AFKProtectionEnabled" , true )
137137 lia .config .set (" AFKProtectionEnabled" , not currentValue )
0 commit comments