Blank basic script code (in case you want it)

Avatar

By soulplexis 7 September 2019 19:35

Donator · 577 comments

for just in case you want a very basic module script here it is:

var scriptName = "script";
var scriptAuthor = "author"; 
var scriptVersion = 1.0;


function Module() {
    this.getName = function() {
        return "AModule";
    }
    this.getCategory = function() {
        return "Combat";   
    }

    this.getDescription = function() {
        return "It does... something.";
    }
	//
    this.onEnable = function() {
		
    }
	this.onUpdate = function() {
		
	}
	this.onDisable = function() {
		
	}
}

var module = new Module();
var moduleClient;

function onEnable() {
    moduleClient = moduleManager.registerModule(module);
}

function onDisable() {
    moduleManager.unregisterModule(moduleClient);
}

【ソルプレクサス】

Avatar

By Sms_Gamer_3808 7 September 2019 19:37

Member · 654 comments

no u


I don't exist

Avatar

By icewormy3 7 September 2019 20:00

Member · 860 comments

actually the best template for scriptAPI newbies