Wait until serverside is done loading before running clientside
This commit is contained in:
parent
a03933a81e
commit
eeb2baaac6
1 changed files with 23 additions and 4 deletions
27
cl_lsft.txt
27
cl_lsft.txt
|
@ -35,9 +35,6 @@ if player() == owner() then
|
|||
net.writeStream(config)
|
||||
net.send()
|
||||
|
||||
net.start("LSFT-Get-Config")
|
||||
net.writeString("hello there!")
|
||||
net.send()
|
||||
|
||||
net.receive("LSFT-Config-Write", function(data)
|
||||
print("Got net message to write config, waiting for stream...")
|
||||
|
@ -46,5 +43,27 @@ if player() == owner() then
|
|||
file.write("lsftconf.txt", data)
|
||||
end)
|
||||
end)
|
||||
end
|
||||
|
||||
--[[
|
||||
net.receive("LSFT-Get-Config-Resp-Test", function()
|
||||
print(unpack(net.readTable()))
|
||||
print(unpack(net.readTable()))
|
||||
end)
|
||||
--]]
|
||||
end
|
||||
|
||||
net.receive("LSFT-Loaded", function()
|
||||
dodir("lsft/modules/client")
|
||||
dodir("lsft/modules/shared")
|
||||
|
||||
--[[
|
||||
if player() == owner() then
|
||||
net.start("LSFT-Get-Config")
|
||||
net.writeString("LSFT-Get-Config-Resp-Test")
|
||||
net.writeTable({"core","command_prefix"})
|
||||
net.writeTable({"spectate","controls","forward"})
|
||||
net.writeTable({})
|
||||
net.send()
|
||||
end
|
||||
--]]
|
||||
end)
|
Loading…
Reference in a new issue