Files
wnsrc/gamemodes/darkrp/plugins/combineutilities/consoles/cl_consoles.lua
lifestorm 6a58f406b1 Upload
2024-08-04 23:54:45 +03:00

28 lines
670 B
Lua

--[[
| This file was obtained through the combined efforts
| of Madbluntz & Plymouth Antiquarian Society.
|
| Credits: lifestorm, Gregory Wayne Rossel JR.,
| Maloy, DrPepper10 @ RIP, Atle!
|
| Visit for more: https://plymouth.thetwilightzone.ru/
--]]
netstream.Hook("SetLinkedUpdateCL", function(update)
ix.data.Set("CameraConsoleLinkedUpdate", update)
end)
netstream.Hook("SetConsoleUpdates", function(updates)
if (IsValid(ix.gui.consolePanel)) then
ix.gui.consolePanel.updates = updates
end
end)
netstream.Hook("CloseConsole", function(updates)
if (IsValid(ix.gui.consolePanel)) then
ix.gui.consolePanel:TurnOff()
ix.gui.consolePanel:Remove()
end
end)