Files
BarotraumaModServer/LocalMods/Neurotrauma/Lua/ConsentRequiredExtended/init.lua
2026-06-09 00:42:10 +03:00

19 lines
538 BLFS
Lua
Executable File

local SRC_NAMESPACE = "ConsentRequiredExtended."
local MAIN = "Main"
local LUA_EVENT_LOADED = "loaded"
local HOOK_NAME_ON_LOADED = "ConsentRequiredExtended.onLoaded"
if Game.IsMultiplayer and CLIENT then return end
local function onLoaded()
-- Only run client side if not multiplayer
---@diagnostic disable-next-line: undefined-global
-- if Game.IsMultiplayer and CLIENT then return end
local requireStr = SRC_NAMESPACE .. MAIN
require(requireStr)
end
Hook.Add(LUA_EVENT_LOADED, HOOK_NAME_ON_LOADED, onLoaded)