Update main.lua

This commit is contained in:
Lorraxs 2024-03-28 23:44:07 +07:00
parent e42f1f006b
commit fc8a4f4587

View File

@ -42,6 +42,7 @@ function Main:Init()
o.playerServerId = GetPlayerServerId(o.playerId) o.playerServerId = GetPlayerServerId(o.playerId)
o:Thread1() o:Thread1()
else else
if Config.ClientLazyLoad then
o.ClientImpls = {} o.ClientImpls = {}
for k, v in pairs(Config.EnableModules) do for k, v in pairs(Config.EnableModules) do
if v then if v then
@ -60,6 +61,7 @@ function Main:Init()
return o.ClientImpls[implName] return o.ClientImpls[implName]
end) end)
end end
end
o:Exports() o:Exports()
o:RegisterCommands() o:RegisterCommands()
o:RegisterEvents() o:RegisterEvents()