From 1e1fabd565ed3e4bca79d05963f24a72501abde1 Mon Sep 17 00:00:00 2001 From: Cooldude2606 Date: Thu, 7 Dec 2017 19:23:50 +0000 Subject: [PATCH] Added way to get new threads from server --- locale/ExpCore/server.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/locale/ExpCore/server.lua b/locale/ExpCore/server.lua index 5a160f92..1b1eb97b 100644 --- a/locale/ExpCore/server.lua +++ b/locale/ExpCore/server.lua @@ -43,6 +43,11 @@ function Server._threads(reset) return global.exp_core.threads end +-- see thread:create (this was done so thread can remain local) +function Server.new_thread(obj) + return thread:create(obj) +end + --- Adds a thread into the resolve queue, can be used to lower lag -- @usage Server.queue_thread(thread) -- return true/false -- @tparam table the thread to add to the queue must have a resolve function (must be open)