Skip to content

Get started

Eva edited this page Mar 15, 2018 · 2 revisions

Get started

To build an example plugin you need to do 8 simple steps!

Install Rust compiler

  • Download rustup tool.
  • Install nightly-i686-unknown-linux-gnu toolchain. (Type in the terminal rustup install nightly-i686-unknown-linux-gnu)
  • Install nightly-i686-pc-windows-msvc toolchain. (For Windows x86 plugin version).

Start to code

  • 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!") to load function in src/plugin.rs.
  • Build the plugin! Type cargo build --release then put a library file from target/release in a plugins folder.

Make a more complex plugin

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.
Clone this wiki locally