A downloadable mod

Download NowName your own price

Lockable Deployables

Add code locks to barrels, furnaces, vehicles, and more. Protect any deployable on your Rust server with a fully configurable lock system.

Oxide Plugin Rust Code Lock Configurable
๐Ÿ”’

Lock Anything You Deploy

Barrels, furnaces, mixing tables, helicopters, boats, bikes — if you can place it, you can lock it. Add any prefab to the config and secure it with a code lock.

Features

๐Ÿ”’

Code Lock on Any Deployable

Attach code locks to deployables that don't normally support them. Storage barrels, furnaces, composters, mixing tables, and more.

๐Ÿš—

Vehicle Support

Lock helicopters, boats, submarines, snowmobiles, bikes, and horses. Keep your rides safe from thieves.

๐Ÿ”ง

Custom Lock Position & Rotation

Fine-tune where the code lock appears on each deployable. Set custom position and rotation per prefab in the config file.

๐Ÿ”

Permission-Based

Uses Oxide's permission system. Only players with the granted permission can attach code locks to configured deployables.

๐Ÿ“ฆ

30+ Default Prefabs

Ships with over 30 pre-configured prefabs out of the box, including DLC storage barrels, furnaces, vehicles, and more.

๐Ÿ›ก๏ธ

Radial Menu Protection

Locked containers enforce access checks on the radial menu Open action, preventing players from bypassing the lock.

How It Works

โ†’ A player places a deployable that is registered in the config file.
โ†’ The plugin exposes a Lock slot on that deployable via Harmony patches.
โ†’ A player with the lockabledeployables.use permission attaches a Code Lock.
โ†’ If custom position or rotation is configured, the lock is placed at the specified offset.
โ†’ The deployable is now locked. Unauthorized players cannot open or interact with it.

Default Supported Deployables

The following categories are pre-configured out of the box. You can add or remove any prefab in the config file.

Category Items
Storage Storage Barrel B/C, Bamboo Barrel, Wicker Barrel, Krieg Storage, Abyss Barrel
Crafting Mixing Table, Cooking Workbench, BBQ, Composter
Furnaces Furnace, Large Furnace, Electric Furnace
Aircraft Attack Helicopter, Minicopter, Scrap Transport Helicopter
Land Vehicles Pedal Trike, Pedal Bike, Motorbike, Motorbike with Sidecar, Snowmobile, Tomaha Snowmobile
Watercraft Solo Submarine, Duo Submarine, Kayak, RHIB, Rowboat
Animals Ridable Horse

Configuration

A configuration file is automatically generated at oxide/config/LockableDeployables.json on first load.

With custom position and rotation

{
  "Lockable deployables": {
    "assets/prefabs/deployable/cookingworkbench/cookingworkbench.deployed.prefab": {
      "Code lock local position": { "X": 0.97, "Y": 1.45, "Z": -0.45 },
      "Code lock local rotation (Euler degrees)": { "X": -4.0, "Y": 18.0, "Z": 2.0 }
    }
  }
}

Without position/rotation (default placement)

{
  "Lockable deployables": {
    "assets/prefabs/deployable/composter/composter.prefab": {}
  }
}
Prefab Names

Use the full prefab path exactly as it appears in the game files. The plugin matches the config key against the entity's PrefabName.

Installation

1 Copy the plugin file
Place LockableDeployables.cs into your server's oxide/plugins/ directory.
2 Start or restart your server
The config file will be generated automatically at oxide/config/LockableDeployables.json.
3 Edit the configuration
Add or remove prefabs, and optionally set custom lock position and rotation for each.
4 Reload the plugin
Run oxide.reload LockableDeployables in the server console to apply changes.

Permission

lockabledeployables.use

Only players with this permission can attach code locks to configured deployables. Players without it will see default game behavior.

Grant Permission

oxide.grant user <SteamID> lockabledeployables.use

Revoke Permission

oxide.revoke user <SteamID> lockabledeployables.use

Important Notes

Harmony Patches

This plugin uses Harmony patches that are automatically applied when the plugin loads and removed when it unloads. No manual patch management is needed.

โš  Existing Locks

Lock position and rotation adjustments are only applied at the moment of attachment. Existing locks are not repositioned after a server restart or config change.

Lockable Deployables — An Oxide plugin for Rust dedicated servers.

Made by little method

Updated 1 day ago
StatusReleased
CategoryGame mod
Authorlittle method
Tagsmod, plugin, rust
LinksPatreon
AI DisclosureAI Assisted, Code, Graphics, Sounds, Text

Download

Download NowName your own price

Click download now to get access to the following files:

CHANGELOG.md 945 bytes
LockableDeployables.cs 16 kB

Leave a comment

Log in with itch.io to leave a comment.