Module core.plugins.autokick.sv_init
Serverside AFK Module
Module Overview
Functions
| PLUGIN.checkPos(ply) | Beta check where a user's position changes are checked against their other actions. |
| PLUGIN.doAction(ply, afk_time) | Function to handle the kick / AFK action. |
| PLUGIN.doCarAction(ply, afk_time) | Remove AFK player's vehicles. |
| PLUGIN.doDoorAction(ply, afk_time) | Sell a player's doors and remove their props. |
| PLUGIN.tickUp(ply) | Tick up a player's AFK time. |
| PLUGIN.tickDown(ply) | Reset a player's AFK time. |
- PLUGIN.checkPos(ply)
-
Beta check where a user's position changes are checked against their other actions.
Parameters:
- ply The player to check against.
- PLUGIN.doAction(ply, afk_time)
-
Function to handle the kick / AFK action.
Parameters:
- ply The player to reset.
- afk_time How long the player has been AFK.
- PLUGIN.doCarAction(ply, afk_time)
-
Remove AFK player's vehicles.
Parameters:
- ply The player to reset.
- afk_time How long the player has been AFK.
- PLUGIN.doDoorAction(ply, afk_time)
-
Sell a player's doors and remove their props.
Parameters:
- ply The player to reset.
- afk_time How long the player has been AFK.
- PLUGIN.tickUp(ply)
-
Tick up a player's AFK time.
Parameters:
- ply The player to tick.
- PLUGIN.tickDown(ply)
-
Reset a player's AFK time.
Parameters:
- ply The player to reset.