-
Notifications
You must be signed in to change notification settings - Fork 0
GlassLoaderClass
github-actions[bot] edited this page Nov 23, 2024
·
3 revisions
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.
Documentation generated with Gludoc.