lsft/modules/server/sv_focus.txt

28 lines
637 B
Text
Raw Normal View History

--@name
--@author
--@server
do
function getFocused()
net.start("LSFT-Get-Focused")
net.send()
end
net.receive("LSFT-Get-Focused-Resp", function(data, ply)
print(ply:getName(), net.readBool())
end)
core.modules.getfocus = {
version = 1,
desc = "Queries all players to see if their game is focused.",
commands = {
focus = {
func = getFocused,
usage = "focus",
desc = "Prints a list of what the current state of getFocused() is for each player on the server",
},
},
}
end