CityRP Documentation Repository

core.derma.cl_doptionpanel

Market / Inv Options Button Panel

Functions

Clientcityrp.ui.AddCopyBindButton(parent, item, meta, showManufactureUse) → PanelSource ☍

Add a styled "Copy Bind" button that opens the fan-out menu. Works with both DIconLayout (inventory) and DOptionPanel (market).

Parameters

  • parentPanel
  • itemtable
  • metastring?
  • showManufactureUseboolean?When nil, inferred from the item's onUse handler.

Returns

  1. Panel
Clientcityrp.ui.OpenItemCopyBindMenu(item, meta, showManufactureUse)Source ☍

Open a fan-out menu of copyable item binds (Use / Drop / Give / Manufacture / Manufacture & Use). Meta is appended for inventory actions so vehicle plates and other variants bind correctly.

Parameters

  • itemtableItem definition
  • metastring?Inventory meta key (display key when variants share a visible identity)
  • showManufactureUseboolean?When nil, inferred from the item's onUse handler.

Fields

Clientcityrp.uiSource ☍