Introduction
A very simple omp server template that based on samp-node and uses the library @infernus/core
Getting started
Recommended
pnpm create @infernus/app
Manual
The necessary files were removed to ensure that the latest version is always used and that the repository file size is reduced
- Download the omp server, later extract the
omp-server[.exe]
andcomponents
folder to the project root directory - Download the samp-node, later put
libnode.so/dll
in the project root directory andsamp-node.so/dll
in the plugins folder - Download the streamer plugin, later put
streamer.so/dll
in the plugins folder
# clone the project with https
git clone https://github.com/dockfries/infernus-starter
# or ssh
git clone [email protected]:dockfries/infernus-starter.git
# enter the project directory
cd infernus-starter
# install dependency
pnpm install
# change rcon.password in config.json
vim config.json
"rcon": {
"password": "changeme" # change this
},
# develop (start compilation, listen for changes and restart automatically)
pnpm dev
Build
# build for production environment
pnpm build
# run omp server
pnpm serve
Notice
- Why does crash the first time you run it?
samp-node
plugin should be executed after other plugins, seeconfig.json -> pawn.legacy_plugins
samp-node
requires compliance with thecommonjs
specification and has been converted viarollup
Credits
License
MIT License © 2022-PRESENT Carl You