Module sv_time

Time System

Functions

GetTime () GetTime function.
CreateDelayThread (id, time, callback, minutesCallback, minutesAmount) CreateDelayThread function.
DeleteDelayThread (id) DeleteDelayThread function.


Functions

GetTime ()
GetTime function. This function returns the current time.

Returns:

    number

Usage:

    local time = exports.jones_util:GetTime()
CreateDelayThread (id, time, callback, minutesCallback, minutesAmount)
CreateDelayThread function. This function creates a delay thread.

Parameters:

  • id The id of the delay thread. string
  • time The time to delay. number
  • callback The callback function. function
  • minutesCallback The callback function for minutes. function
  • minutesAmount The amount of minutes to wait. number

Usage:

    exports.jones_util:CreateDelayThread("weed", 1000, function()
    	print("Hello World!")
    end)
DeleteDelayThread (id)
DeleteDelayThread function. This function deletes a delay thread.

Parameters:

  • id The id of the delay thread. string

Usage:

    exports.jones_util:DeleteDelayThread("weed")
generated by LDoc 1.5.0 Last updated 2024-05-13 19:05:24