Advertisement
Guest User

Untitled

a guest
Jul 7th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. --Initialization script for the Mission lua Environment (SSE)
  2.  
  3. dofile('Scripts/ScriptingSystem.lua')
  4.  
  5. --Sanitize Mission Scripting environment
  6. --This makes unavailable some unsecure functions.
  7. --Mission downloaded from server to client may contain potentialy harmful lua code that may use these functions.
  8. --You can remove the code below and make availble these functions at your own risk.
  9.  
  10. local function sanitizeModule(name)
  11. _G[name] = nil
  12. package.loaded[name] = nil
  13. end
  14.  
  15. do
  16. --sanitizeModule('os')
  17. --sanitizeModule('io')
  18. sanitizeModule('lfs')
  19. require = nil
  20. loadlib = nil
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement