Rust:IO Template for Rust

A template to help you get started to develop plugins using the Rust:IO API.

Total Downloads: 1,329 - First Release: Mar 17, 2015 - Last Update: Aug 14, 2016

4.6/5, 5 likes
  1. dcode
    Required Dependencies:
    http://oxidemod.org/extensions/rust-io.768/
    Configuration File:
    No
    This is a template to help you get started to develop plugins using the Rust:IO API. This plugin is not intended to be used directly, but is here as a reference source for how to properly work with Rust:IO.
    Once your plugin is loaded and the server has been initialized, the Rust:IO API will be fully set up for you to use. From within your plugin you may then use the following methods:
    • IO():bool
      Returns if the extension is currently installed (i.e. present and not loading or updating). Always test this as the other methods will always return false / an empty object if not installed.
    • HasFriend(playerSteamId:string, friendSteamId:string):bool
      Returns if a player has a specific friend (player shares location with friend)
    • AddFriend(playerSteamId:string,friendSteamId:string):bool
      Adds a friend and returns true if actually added
    • DeleteFriend(playerSteamId:string,friendSteamId:string):bool
      Deletes a friend and returns true if actually deleted
    • GetFriends(playerSteamId:string):List<string>
      Returns a list of a player's friends.