Added docs for the util functions and fixed timer docs

This commit is contained in:
EvilFactory
2023-05-17 10:14:16 -03:00
parent 09c36a9213
commit 6b96927b23
2 changed files with 19 additions and 2 deletions

View File

@@ -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

View 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