Added docs for the util functions and fixed timer docs
This commit is contained in:
@@ -17,9 +17,9 @@ function Timer.GetTime() end
|
||||
-- @realm shared
|
||||
function Timer.Wait(func, milliseconds) end
|
||||
|
||||
--- Calls a function after a certain amount of time.
|
||||
--- Calls a function in the next frame
|
||||
-- @realm shared
|
||||
function Timer.GetUsageMemory() end
|
||||
function Timer.NextFrame(func) end
|
||||
|
||||
--- Same as GetTime()
|
||||
-- @realm shared
|
||||
|
||||
17
luacs-docs/lua/lua/Util.lua
Normal file
17
luacs-docs/lua/lua/Util.lua
Normal file
@@ -0,0 +1,17 @@
|
||||
-- luacheck: ignore 111
|
||||
|
||||
--[[--
|
||||
Class providing several util functions.
|
||||
]]
|
||||
-- @code Util
|
||||
-- @pragma nostrip
|
||||
|
||||
local Util = {}
|
||||
|
||||
--- Returns a table with all items that have the given identifier.
|
||||
-- @realm shared
|
||||
Util.GetItemsById = function (id) end
|
||||
|
||||
--- Returns the Client that is currently controlling the Character, returns nil if no Client is controlling the Character.
|
||||
-- @realm shared
|
||||
Util.FindClientCharacter = function (character) end
|
||||
Reference in New Issue
Block a user