27 lines
637 B
Text
27 lines
637 B
Text
--@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
|
|
|