Skip to content

sw08/acServer-plugin-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

acServer-plugin-js

A node.js wrapper that enables people to make Assetto Corsa multiplayer server plugin easily.

Key Features

  • Support for all the features available in official C# example

Installing

> npm install --save acserver-plugin

Quick Example

const server = require('acserver-plugin');
const app = new server.PluginApp();

app.on(server.PROTOCOLS.NEW_SESSION, (data) => {
    console.log('New Session');
    console.log(data);
});

app.on(server.PROTOCOLS.CHAT, (data) => {
    app.getCarInfo(data[0]);
    if (data[1] === '!kick me') {
        app.kick(data[0]);
    }
});

app.on(server.PROTOCOLS.CAR_INFO, (data) => {
    console.log(data);
})

app.run(12001);

More Description

License

This project is licensed under the MIT License.

Links

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published