Skip to content

This is an extension/mod that will allow you to compile/run C#/Javascript (NodeJS)/Python on the fly.

License

Notifications You must be signed in to change notification settings

maca134/armaext

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ARMA EXT - Downloads

This is an extension/mod that will allow you to compile/run C#/Javascript (NodeJS)/Python on the fly.

More languages can/will be added if requested.

The mod has only 2 functions:

Load script, returns a pointer

_pointer = [_path_to_script] call ARMAEXT_fnc_load

Run the script and return the results

_result = [_pointer, _args] call ARMAEXT_fnc_run;

The c# has to implement the follow pattern:

class Startup {
    public static string Invoke(string input)
    {
        return "Hello World from C#";
    }
}

The Javascript has to return a function with 2 arguments:

module.exports = function (data, callback) {
	var err = null;
	callback(err, "Hello World from NodeJS");
};

You are free to use any nodejs modules

Python has to evaluate to a Python lambda expression that takes one parameter.

def example(input):
	return "Python welcomes " + input

lambda x: example(x)
  • If you use this on clients, DISABLE BATTLEYE!
  • Output is auto truncated, no way to get current output size yet

Credits

Most of this was inspired by the work done by tjanczuk on Edge

Licence

This work is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License

If you want to use this commercially (or include it in "ARMA Samples", like my ARMA c# extension pattern) you must ask permission. You know who you are!

About

This is an extension/mod that will allow you to compile/run C#/Javascript (NodeJS)/Python on the fly.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages