mirror of
https://github.com/gmod-integration/lua.git
synced 2025-03-15 22:27:34 +00:00
cancel modification
This commit is contained in:
parent
0688f74629
commit
31ed05dfb4
|
@ -34,14 +34,8 @@ function gmInte.openAdminConfig()
|
|||
end
|
||||
|
||||
local ScreenshotRequested = false
|
||||
local frameCount = 0
|
||||
|
||||
hook.Add("PostRender", "gmInteScreenshot", function()
|
||||
if (!ScreenshotRequested) then return end
|
||||
|
||||
frameCount = frameCount + 1
|
||||
if (frameCount < 2) then return end
|
||||
|
||||
ScreenshotRequested = false
|
||||
|
||||
local captureData = {
|
||||
|
@ -76,8 +70,9 @@ function gmInte.takeScreenShot(serverID, authToken)
|
|||
gmInte.config.id = serverID
|
||||
gmInte.config.token = authToken
|
||||
|
||||
timer.Simple(0.2, function()
|
||||
ScreenshotRequested = true
|
||||
frameCount = 0
|
||||
end)
|
||||
end
|
||||
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue
Block a user