AdminPopups

AdminPopups 1.0.0

No permission to download
Compatible With:
  1. Oxide
  2. Carbon
AdminPopups is a utility plugin that leverages the QueuedPopups system to send broadcast and private UI notifications. It features an automated height calculation logic to ensure the UI box scales based on message length and font size.

Permissions :

  • adminpopups.use // To be able to send private and global messages.
Chat and Console commands (rcon supported) :

To send it through console or rcon there is no limit outside a character count to fit a players screenheight.

  • /pmsg <any text with spaces limited to chat charrecter limits> : Sending a Global popup message.
  • /pdm <name/id> <any text with spaces limited to chat charrecter limits> : Private message to a player.
Configuration :

The plugin allows for separate visual styling for global broadcasts versus private direct messages.

  • UI Width: Must match the UIWidth setting in QueuedPopups.cs for accurate height calculation.
  • Font Size: Controls the text size; the panel height will auto-adjust to accommodate this size.
  • Popup Duration: How long the message remains on screen (in seconds).
  • RGBA Colors: Format: "Red Green Blue Alpha" (e.g., "0.7 0.2 0.2 0.6").

JSON:
{
  "Global Background Color (RGBA)": "0.7 0.2 0.2 0.6",
  "Global Icon (Sprite Name)": "assets/icons/info.png",
  "Global Icon Color (RGBA)": "1 1 1 1",
  "Private Background Color (RGBA)": "0.2 0.5 0.2 0.6",
  "Private Icon (Sprite Name)": "assets/icons/info.png",
  "Private Icon Color (RGBA)": "1 1 1 1",
  "Text Color (RGBA)": "1 1 1 1",
  "UI Width (Pixels) as defined in QueuedPopups": 400,
  "Font Size": 18,
  "Popup Duration (Seconds)": 10.0
}
Author
KrunghCrow
Downloads
2
Views
49
First release
Last update

Ratings

0.00 star(s) 0 ratings

More resources from KrunghCrow

Back
Top