Advertisement
Dr_Kousek

Untitled

Jun 3rd, 2019
288
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var scriptName = "Test";
  2. var scriptVersion = 0.01;
  3. var scriptAuthor = "Your name";
  4.  
  5.  
  6. function Test(){
  7.   this.getName = function() {
  8.     return "Test";
  9.     };
  10.  
  11.   this.getDescription = function() {
  12.     return "Test";
  13.   };
  14.  
  15.   this.getCategory = function() {
  16.     return "Fun";
  17.   };
  18.  
  19.     this.onEnable = function () {};
  20.  
  21.     this.onUpdate = function() {};
  22.  
  23.   this.onMotion = function(e) {
  24.       if(e[0] == "PRE"){}
  25.       if(e[0] == "POST"){}
  26.   }
  27.  
  28.     this.onDisable = function () {};
  29.  
  30. };
  31.  
  32.  
  33. var test = new Test();
  34. var clientTest;
  35.  
  36.  
  37. function onLoad() {};
  38.  
  39. function onEnable() {
  40.     clientTest = moduleManager.registerModule(Test);
  41. };
  42.  
  43. function onDisable() {
  44.     moduleManager.unregisterModule(clientTest);
  45. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement