14 lines
323 B
Lua
Raw Permalink Normal View History

2025-04-07 01:41:12 +00:00
local externalShutdown = GetConvarInt('loadscreen:externalShutdown', 0) == 1
CreateThread(function()
if not externalShutdown then
ShutdownLoadingScreen()
ShutdownLoadingScreenNui()
return
end
SendLoadingScreenMessage(json.encode({
customEvent = 'finishedLoading',
}))
end)