Skip to content

Instantly share code, notes, and snippets.

View jaymo1011's full-sized avatar
👨‍💻
Forever refactoring

Jaymo jaymo1011

👨‍💻
Forever refactoring
View GitHub Profile
@jaymo1011
jaymo1011 / remote-lua-loader.lua
Last active May 31, 2020 09:47
Remote Lua loader for FXServer
-- Define the location of the lua code to be ran
local luaFileLocation = "https://gist.githubusercontent.com/jaymo1011/9240509b7b8bef9fba1f55513d155eb0/raw"
-- Setup sandboxed lua environment
local sandbox = {}
-- These will not be included within the sandbox
-- Additionally, there should not be the need to protect any libraries as nothing else will execute after this file
local unsafeFunctions = {
["sandbox"] = true,