Skip to content

Modding

Yanis Guaye edited this page Jun 10, 2022 · 1 revision

Modding

Example

game.addMod({
    name: 'Hello',
    description: 'Very basic mod example',

    onLoad: function (mod) {
        mod.log('The basic mod is loading...');

        // :see_no_evil:
        game.sv_cheats = 1;

        mod.log('The basic mod has loaded, enjoy!');
    },
    onUnload: function (mod) {
        mod.log('The basic mod has unloaded :(');
    }
});
Clone this wiki locally