Skip to content
Contractsv1.14.0

HUD

⭐ Premium

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"
}
}
FieldTypeDefaultDescription
Anchor Minstring"0.0 0.60"Bottom-left corner of the HUD as screen coordinates "x y", each from 0 to 1 starting at the bottom left.
Anchor Maxstring"0.15 0.87"Top-right corner of the HUD as screen coordinates "x y", each from 0 to 1 starting at the bottom left.
Collapse Directionenum: TopLeft | TopRight | BottomLeft | BottomRight"TopLeft"Corner the HUD shrinks toward when a player collapses it. Pick the corner closest to where the HUD is anchored.

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.