Skip to content

Instantly share code, notes, and snippets.

@redconfetti
Last active January 19, 2021 15:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save redconfetti/79677cc0bf1f952060493b78833f8b7a to your computer and use it in GitHub Desktop.
Save redconfetti/79677cc0bf1f952060493b78833f8b7a to your computer and use it in GitHub Desktop.
Rust Cheatsheet

Rust Console Commands

These commands will work for an "owner".

Useful References

Basic Commands

# connect to custom server
# client.connect <host>:<port>
client.connect 123.234.45.67:2001

# view players with steam id
players

# make a player owner/admin
ownerid "64_bit_steam_id" "optional_user_name" "optional_reason"

# give item to self
inventory.give sulphur 10000

# give item to another player
inventory.giveto <player-name> "rifle.ak" 5

# commit suicide
kill

Teleport

# move player 1 to player 2's location
teleport "player1" "player2"

# output current position
printpos

# teleport self to specific location
teleportpos (“0.0” “0.0” “0.0”)

# teleport self to another player by name
teleport2me “playername”

Items

Here are sets of commands I prefer to run to gear up for different purposes.

See RustLabs - Item List

Every Day Carry

# Burlap Clothing
inventory.give burlap.trousers 1
inventory.give burlap.shoes 1
inventory.give burlap.shirt 1

# Conventional Clothing - Warm Climate
inventory.give shirt.tanktop 1
inventory.give shirt.collared 1
inventory.give tshirt 1
inventory.give pants.shorts 1
inventory.give hat.cap 1

# Conventional Clothing - Cool Climate
inventory.give hat.boonie 1
inventory.give pants 1
inventory.give shoes.boots 1

# Conventional Cloting - Cold Climate
inventory.give hat.beenie 1
inventory.give tactical.gloves 1
inventory.give tshirt.long 1
inventory.give jacket 1
inventory.give jacket.snow 1
inventory.give pants 1

# Lighting Hats
inventory.give hat.candle 1
inventory.give hat.miner 1

# First Aid
inventory.give bandage 20
inventory.give blood 6
inventory.give antiradpills 5
inventory.give largemedkit 5
inventory.give syringe.medical 10

# Basic Tools
inventory.give hatchet 2
inventory.give pickaxe 2
inventory.give hammer.salvaged 2

# Light Armor
inventory.give metal.facemask 1;
inventory.give metal.plate.torso 1
inventory.give shoes.boots 1
inventory.give roadsign.kilt 1
inventory.give tactical.gloves 1

# Heavy Armor
inventory.give heavy.plate.helmet 1
inventory.give heavy.plate.jacket 1
inventory.give heavy.plate.pants 1

# Radiation Suits
inventory.give hazmatsuit 1

# Scuba Gear
inventory.give diving.mask 1
inventory.give diving.fins 1
inventory.give diving.tank 1

Gear Up

bind F10 inventory.give largemedkit 15;inventory.give rifle.l96 1;inventory.give rifle.ak 1;inventory.give metal.facemask 1;inventory.give metal.plate.torso 1;inventory.give shoes.boots 1;inventory.give roadsign.kilt 1;inventory.give tactical.gloves 1;inventory.give pumpkin 5;inventory.give weapon.mod.holosight 1;inventory.give weapon.mod.muzzlebrake 2;inventory.give weapon.mod.small.scope 1;inventory.give weapon.mod.8x.scope 1;inventory.give ammo.rifle.hv 500;inventory.give ammo.rifle.explosive 500;inventory.give lowgradefuel 300;inventory.give tshirt.long 1;inventory.give pants 1;spawn minicopter

Sustenance

# Water
inventory.give water 10
inventory.give water.salt 2
inventory.give waterjug 5
inventory.give water.barrel 2
inventory.give smallwaterbottle 10
inventory.give water.catcher.small 1
inventory.give water.catcher.large 1
inventory.give water.purifier 1
inventory.give bucket.water 1

# Food
inventory.give apple 5
inventory.give corn 5
inventory.give pumpkin 5
inventory.give mushroom 10
inventory.give chicken.cooked 5
inventory.give deermeat.cooked 5
inventory.give bearmeat.cooked 5
inventory.give fish.cooked 5
inventory.give horsemeat.cooked 5

Weaponry

Melee

# Bone
inventory.give bone.club 1
inventory.give snowball 1
inventory.give knife.bone 1

# Knives
inventory.give knife.butcher 1
inventory.give salvaged.cleaver 1

# Swords
inventory.give longsword 1
inventory.give salvaged.sword 1
inventory.give knife 1
inventory.give knife 1

# Misc
inventory.give mace 1
inventory.give pitchfork 1
inventory.give machete 1

Ranged

# Bows
inventory.give bow.hunting 1
inventory.give bow.compound 1
inventory.give crossbow 1

# Arrows
inventory.give arrow.wooden 5
inventory.give arrow.bone 5
inventory.give arrow.hv 50
inventory.give arrow.fire 50

# Spears
inventory.give spear.wooden 1
inventory.give spear.stone 1

Explosives

inventory.give explosive.satchel 50

Guns

# Pistols
inventory.give pistol.eoka 1
inventory.give pistol.m92 1
inventory.give pistol.nailgun 1
inventory.give pistol.python 1
inventory.give pistol.revolver 1
inventory.give pistol.semiauto 1
inventory.give pistol 1
inventory.give pistol 1

# Pistol Ammo
inventory.give pistol 1

# Rifles
inventory.give rifle.ak 2
inventory.give rifle.bolt 1
inventory.give rifle.l96 1
inventory.give rifle.lr300 1
inventory.give rifle.m39 1
inventory.give rifle.semiauto 1

# Rifle Ammo
inventory.give ammo.rifle 500
inventory.give ammo.rifle.hv 500
inventory.give ammo.rifle.explosive 500
inventory.give ammo.rifle.incendiary 100

# Weapon Modifications
inventory.give weapon.mod.simplesight 1
inventory.give weapon.mod.holosight 2
inventory.give weapon.mod.muzzlebrake 2
inventory.give weapon.mod.muzzleboost 2
inventory.give weapon.mod.small.scope 1
inventory.give weapon.mod.8x.scope 1
inventory.give weapon.mod.silencer 1
inventory.give weapon.mod.flashlight 1
inventory.give weapon.mod.lasersight 1

# Machine Guns
inventory.give smg.2 1
inventory.give smg.mp5 1
inventory.give smg.thompson 1
inventory.give lmg.m249 1

# Shotguns
inventory.give shotgun.double 1
inventory.give shotgun.pump 1
inventory.give shotgun.spas12 1
inventory.give shotgun.waterpipe 1

# Shotgun Ammo
inventory.give ammo.shotgun 50
inventory.give ammo.shotgun.slug 50
inventory.give ammo.shotgun.fire 25

# Rocket Launcher
inventory.give rocket.launcher 2

# Rocket Launcher Ammo
inventory.give ammo.rocket.basic 10
inventory.give ammo.rocket.hv 10
inventory.give ammo.rocket.sam 10
inventory.give ammo.rocket.fire 10
inventory.give ammo.rocket.smoke 10

Traps

inventory.give spikes.floor 1
inventory.give autoturret 1
inventory.give flameturret 1
inventory.give guntrap 1
inventory.give samsite 1
inventory.give trap.bear 1
inventory.give trap.landmine 1

Misc

# Grenades
inventory.give grenade.f1 10

# Flamethrower
inventory.give flamethrower 1
inventory.give lowgradefuel 20

Base Materials

inventory.give building.planner 1
inventory.give box.wooden.large 6
inventory.give shelves 2
inventory.give sleepingbag 3

inventory.give cupboard.tool 1
inventory.give lock.key 1
inventory.give door.hinged.wood
inventory.give lantern 1
inventory.give lowgradefuel 10

inventory.give scrap 1000
inventory.give wood 3000
inventory.give stones 5000
inventory.give metal.fragments 500
inventory.give metal.refined 200

# Benches
inventory.give workbench1 1
inventory.give workbench2 1
inventory.give workbench3 1
inventory.give scrap 500

# Metalurgy
inventory.give furnace 1

# Gardening
inventory.give planter.small 2
inventory.give planter.large 2
inventory.give inventory.give waterjug 2
inventory.give ceilinglight 1

# Fishing
inventory.give fishingrod.handmade 1

# Heavy Reinforcement
inventory.give door.hinged.toptier 1
inventory.give wall.frame.garagedoor 1

inventory.give wall.window.bars.toptier 4
inventory.give wall.window.bars.metal 4

Miscellaneous

# Metal Parts
inventory.give metalpipe 10
inventory.give metalblade 10

Decorations

# Conventional
inventory.give rug 2

# Gothic
inventory.give skull_fire_pit 1
inventory.give skull.human 5
inventory.give scarecrow 2
inventory.give coffin.storage 2
inventory.give gravestone 5
inventory.give wall.graveyard.fence 20

Electrical

inventory.give electric.battery.rechargable.small 2
inventory.give electric.battery.rechargable.large 1
inventory.give electric.blocker 1
inventory.give electric.cabletunnel 1
inventory.give electric.counter 1
inventory.give electric.doorcontroller 1
inventory.give electric.flasherlight 1
inventory.give electric.generator.small 1
inventory.give electric.laserdetector 1
inventory.give electrical.memorycell 4
inventory.give electric.orswitch 1
inventory.give electric.pressurepad 1
inventory.give electric.rf.broadcaster 1
inventory.give electric.simplelight 1
inventory.give electric.solarpanel.large 4
inventory.give electric.splitter 1
inventory.give electric.switch 1
inventory.give electric.timer 1
inventory.give electric.xorswitch 1
inventory.give electrical.branch 1
inventory.give electrical.combiner 2
inventory.give wiretool 1
inventory.give fuse

New Tech

inventory.give targeting.computer 5

# Key Cards
inventory.give keycard 1
inventory.give keycard_blue 1
inventory.give keycard_red 1

Spawning Vehicles

# Cars
spawn sedan
spawn 2module_car
spawn 3module_car
spawn 4module_car

# Car Parts
inventory.give sparkplug 2
inventory.give piston 2
inventory.give valve 2
inventory.give carburetor 2
inventory.give crankshaft 2

# Helicopters
spawn scraptransporthelicopter
spawn minicopter

# Boats
spawn rowboat
spawn rhib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment