forked from ticzz/Aimware-v5-luas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAimware Lobbies.lua
32 lines (21 loc) · 1013 Bytes
/
Aimware Lobbies.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
local RunScript = panorama.RunScript
local version = "2"
local lastTime = 0
local newestVer = http.Get("https://raw.githubusercontent.com/Trollface7272/Aimware-Lobbies/main/.version")
local newestVer = newestVer:sub(1, #newestVer - 1)
if version ~= newestVer then RunScript('$.Msg("Download new version! https://aimware.net/forum/thread/149882")') error("Download new version! https://aimware.net/forum/thread/149882") end
local function Search()
if globals.RealTime() - lastTime > 60 then
RunScript([[if (Lobbies) Lobbies.RegisterButton.SendRegister()]])
lastTime = globals.RealTime()
end
end
local function Unload()
RunScript([[if (Lobbies) Lobbies.Unload()]])
end
local script = http.Get("https://raw.githubusercontent.com/Trollface7272/Aimware-Lobbies/main/panorama.js")
RunScript(script)
callbacks.Register("Unload", Unload)
callbacks.Register("Draw", Search)
--***********************************************--
print("♥♥♥ " .. GetScriptName() .. " loaded without Errors ♥♥♥")