-
Notifications
You must be signed in to change notification settings - Fork 11
Get started
Eva edited this page Mar 15, 2018
·
2 revisions
To build an example plugin you need to do 8 simple steps!
-
Download
rustup
tool. - Install
nightly-i686-unknown-linux-gnu
toolchain. (Type in the terminalrustup install nightly-i686-unknown-linux-gnu
) - Install
nightly-i686-pc-windows-msvc
toolchain. (For Windows x86 plugin version).
- Clone an template plugin.
git clone https://github.com/zottce/samp-plugin-template.git
- Modify the plugin. For example, add a new line
log!("Plugin is loaded!")
toload
function insrc/plugin.rs
. - Build the plugin! Type
cargo build --release
then put a library file fromtarget/release
in a plugins folder.
You can use bunch of Rust libraries from crates.io.
- Get an idea what to code.
- Learn documentation of samp-sdk.
- Check out other pages of this wiki to know how to use features.