Actions -
Rust

Configure actions and commands for Rust servers

Overview

Rust servers support various types of actions through the Oxide plugin system. You can give items, unlock blueprints, execute custom commands, and more when players make donations.

Custom Command

Execute custom server commands when a donation is made. The %player% variable will be replaced with the player's Steam ID.

Basic Commands

Code
// Give player resources
give %player% wood 1000
give %player% stone 1000
give %player% metal.fragments 500

// Give player items
give %player% hat.leather 1
give %player% shirt.hoodie 1
give %player% pants.hide 1

Advanced Commands

Code
// Give player weapons
give %player% weapon.ak47 1
give %player% ammo.rifle 100
give %player% weapon.pistol 1
give %player% ammo.pistol 50

// Give player building materials
give %player% building.block 100
give %player% building.frame 50
give %player% building.foundation 25

Give Item

Give specific items to players. This is useful for giving weapons, tools, or other items.

Weapons

Code
// Assault rifles
give %player% weapon.ak47 1
give %player% weapon.lr300 1
give %player% weapon.m4 1

// Shotguns
give %player% weapon.pumpshotgun 1
give %player% weapon.spas12 1

// Pistols
give %player% weapon.pistol 1
give %player% weapon.python 1
give %player% weapon.revolver 1

Tools

Code
// Gathering tools
give %player% hatchet 1
give %player% pickaxe 1
give %player% hammer 1

// Building tools
give %player% building.plan 1
give %player% building.hammer 1

// Medical items
give %player% bandage 10
give %player% syringe.medical 5
give %player% antiradpills 10

Armor

Code
// Clothing
give %player% hat.leather 1
give %player% shirt.hoodie 1
give %player% pants.hide 1
give %player% shoes.boots 1

// Armor
give %player% shirt.hoodie 1
give %player% pants.hide 1
give %player% jacket.snow 1

Give Blueprint

Unlock blueprints for players, allowing them to craft specific items.

Weapon Blueprints

Code
// Unlock weapon blueprints
give %player% blueprint.weapon.ak47 1
give %player% blueprint.weapon.lr300 1
give %player% blueprint.weapon.m4 1
give %player% blueprint.weapon.pumpshotgun 1
give %player% blueprint.weapon.pistol 1

Tool Blueprints

Code
// Unlock tool blueprints
give %player% blueprint.hatchet 1
give %player% blueprint.pickaxe 1
give %player% blueprint.hammer 1
give %player% blueprint.building.plan 1

Armor Blueprints

Code
// Unlock armor blueprints
give %player% blueprint.hat.leather 1
give %player% blueprint.shirt.hoodie 1
give %player% blueprint.pants.hide 1
give %player% blueprint.shoes.boots 1

Command Variables

Available variables for Rust commands:

  • %player% - Player's Steam ID
  • %player_name% - Player's display name
  • %package_name% - Name of the purchased package
  • %package_price% - Price paid for the package
  • %transaction_id% - Unique transaction identifier

Best Practices

  • Test Commands: Always test commands on a test server first
  • Use Variables: Utilize variables to make commands dynamic
  • Check Item Names: Verify item names are correct for your server version
  • Plugin Compatibility: Ensure required plugins are installed
  • Command Syntax: Use correct command syntax for your server version

Troubleshooting

Common issues and solutions:

  • Command not working: Check if the Oxide plugin is installed and enabled
  • Player not found: Ensure the player is online when the command executes
  • Invalid item name: Verify the item name is correct for your server version
  • Permission denied: Check server console permissions
Note: Some commands may require specific Oxide plugins to be installed. Check your server's plugin list to ensure compatibility.