HomePluginsCustom Buttons

Examples

Not just buttons. Whole interfaces, built in game.

These are not fixed designs. They are examples that show how far the plugin goes: menus, a rules page, a live HUD, buttons around the belt and the inventory. Each one is made only of buttons, panels and text from the editor. Pick an example and click it, and press Tab over the screen to open the inventory.

Example
x2
87
173
290
BESTRUST - MONTHLY 2X - JUST WIPED
11:34
47/100
$ 485
Overlay layer

HUD strip. Server name, then one row with game time, players online, balance and a small menu. Click the ⋮ button. Drag the screen to move it.

Editor

One editor. All in game.

/cb opens it. Hover a number to see what each part does.

The Custom Buttons editor
Dragging an element on the game screen

Pie menus

The round Rust menu. With your slices.

Give each slice a name, a description, an icon, a colour and its own actions. A slice can open another pie menu, and a slice with a permission can be greyed out or hidden. This one is rebuilt from the game, with the slice options from the editor beside it: click a slice and change it.

Buttons open it with the Open pie menu action. Players can bind it to a key: bind z "chat.say /admin"

SLICE 1 of 8Click a slice to edit it
Icon
Colour
Without it
On select
1Runas server

The pie on the left is what a player without the permission sees. Type a permission to try it.

/admin

TeleportRun as server tpmarker {player.id}

Actions & triggers

Triggers decide when. Actions decide what.

A click is only one way to start something. Pick a moment on the left, add what should happen on the right, and read the result below. These are all of them.

On Player DeathRustPlayerwho diedHidestep 1Targetgroup HUDRun commandstep 2AsserverCommandsay {player.name} diedHUDGroupHealthBalanceClockPick any trigger below to draw it here
Triggers when it runs
A player…
Another plugin…
Time…
Actions what it does, top to bottom
ShowMakes an element, a group or everything with a tag visible to the player.
HideHides an element, a group or a tag. It can be shown again later.
ToggleShows it when hidden, hides it when shown. What a menu button uses.
UpdateChanges the text, colour, image or position of an element, for this player only.
Run commandRuns a command as the player, in chat, or as the server with full rights.
Open pie menuOpens one of your round pie menus for the player.
Call pluginCalls a method in another plugin. Only methods you allow in the config.
Play effectPlays a game sound or effect at the player, such as a click.

Buttons, triggers, countdowns, your own commands and pie slices all use these same actions. Add as many as you want; they run in order for the player who caused them.

Live values

Text that knows who is reading.

Put a value in curly brackets in any text, command or action, and it is filled in for each player. Change the text below or add a value.

Add a value
Raider sees

Welcome Raider · 47/100 online · $12,500

Over 30 values. Name, health, food, water, the item in hand, position, ping, server name, players online, game time, Economics balance and ServerRewards points. :N0 adds thousands separators and |text is shown when a value is empty. The full list is in the editor under Docs.

Commands

Commands.

/yourcommandYour own chat and console commands, made in the editor. Each can have a permission and a cooldown.Player
/yourpiemenuA pie menu can have its own chat command. Players can put it on a key: bind z "chat.say /menu"Player
/cbOpens the editor.Admin
cb.editorOpens the editor from the console, or with a key: bind F6 cb.editorAdmin
custombuttons.adminThe permission for the editor. Being a server admin is not enough on its own: oxide.grant group admin custombuttons.adminAdmin

Coming from 1.x? 2.0 is a new plugin with a new editor. It starts empty and does not convert old buttons. Back up oxide/config/CustomButtons.json and your old data files first. The old data files are not changed or deleted.

Have more questions?

Talk to us on Discord for support or a custom request.

Join the Discord