Skip to content
These docs reflect Contracts v0.6.0, the latest release. Older servers may differ.

HUD

Controls where the on-screen contract tracker (the HUD that shows a player’s pinned contracts) sits and which way it collapses.

{
"HUD": {
"Anchor Min": "0.0 0.60",
"Anchor Max": "0.15 0.87",
"Collapse Direction": "TopLeft"
}
}
SettingTypeDefaultDescription
Anchor Minstring0.0 0.60Bottom-left corner of the HUD panel, as "x y" screen fractions (see below).
Anchor Maxstring0.15 0.87Top-right corner of the HUD panel, as "x y" screen fractions.
Collapse DirectionenumTopLeftCorner the HUD anchors to when collapsed. One of TopLeft, TopRight, BottomLeft, BottomRight.

See Oxide CUI Reference

Both anchors are a pair of screen fractions written as "x y", where 0 0 is the bottom-left of the screen and 1 1 is the top-right (the same convention Rust UI uses). Anchor Min is the panel’s lower-left corner and Anchor Max is its upper-right corner.

So the defaults ("0.0 0.60" to "0.15 0.87") place the HUD against the left edge, in the upper portion of the screen. To move it to the right edge, raise the x values, for example "0.85 0.60" to "1.0 0.87".

An anchor that is not two numbers is rejected on load (a warning is printed) and falls back to the default.

Collapse Direction sets which corner the panel keeps fixed as it expands and collapses, so the HUD grows away from the screen edge it sits against rather than off-screen. Match it to where you placed the panel: a left-edge HUD reads best with TopLeft or BottomLeft, a right-edge HUD with TopRight or BottomRight.