Skip to content

GlassLoaderClass

github-actions[bot] edited this page Nov 23, 2024 · 3 revisions

GlassLoaderClass

glass_loader.load_glass

Loads a glass script from a path or url.

Parameters

  • opts (table) - The options table.
  • opts.path (string) - The path or url to the glass script.
  • opts.cb (function) - The callback function.
  • opts.execute (boolean?) - Whether to execute the glass script.

Examples

glass_loader.load_glass({
 path = "path/to/glass.lua",
 cb = function(result)
   print(result)
 end,
 execute = true
})

@return any - The result of the glass script.

Clone this wiki locally