It adds a function to crash the server
require("crash")
game.KillServer()
- Rust (https://www.rust-lang.org/tools/install)
- Note: Rust may depend on a separate compiler on your platform, such as Visual Studio, GCC, etc:
- Windows: Install Visual Studio 2019
- Linux: Install
gcc-multilib
- Note: Rust may depend on a separate compiler on your platform, such as Visual Studio, GCC, etc:
- (Optional) Additional Rust toolchains for compiling 32-bit binaries:
rustup target add i686-pc-windows-msvc # Windows
rustup target add i686-unknown-linux-gnu # Linux
git clone https://github.com/Yogpod/gm_crash
cd gm_crash
cargo build --release --target=i686-pc-windows-msvc # 32-bit
cargo build --release --target=x86_64-pc-windows-msvc # 64-bit
You can then find crash.dll
in ./target/<target>/release
. Rename it to gmsv_crash_win32.dll
or gmsv_crash_win64.dll
and you are done.
git clone https://github.com/Yogpod/gm_crash
cd gm_crash
cargo build --release --target=i686-unknown-linux-gnu # 32-bit
cargo build --release --target=x86_64-unknown-linux-gnu # 64-bit
You can then find libcrash.so
in ./target/<target>/release
. Rename it to gmsv_crash_linux.dll
or gmsv_crash_linux64.dll
and you are done.