Advertisement
osmarks

safe API list

May 6th, 2020
1,015
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.41 KB | None | 0 0
  1. local allowed_APIs = {
  2.     "pairs",
  3.     "ipairs",
  4.     "table",
  5.     "string",
  6.     "type",
  7.     "setmetatable",
  8.     "getmetatable",
  9.     "sleep",
  10.     "pcall",
  11.     "xpcall",
  12.     "select",
  13.     "tostring",
  14.     "tonumber",
  15.     "coroutine",
  16.     "next",
  17.     "error",
  18.     "math",
  19.     "assert",
  20.     "unpack",
  21.     "bit",
  22.     "bit32",
  23.     "rawget",
  24.     "rawset",
  25.     "rawequal",
  26.     "print",
  27.     "printError"
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement