> ## Documentation Index
> Fetch the complete documentation index at: https://docs.upio.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Custom Print

> Print with style in the developer console

This utility allows you to print messages in the developer console with a custom icon and color.

<Info>
  **Prerequisite** You should have a executor that supports accessing CoreGui.
</Info>

## API

the custom\_print function takes the following arguments:

<ParamField path="message" type="String" required>
  The message that is going to be printed
</ParamField>

<ParamField path="image" type="String">
  a rbxassetid:// image that will be displayed as the icon. Defaults to ""
</ParamField>

<ParamField path="color" type="Color3">
  The color of the message, Defaults to Color3.fromRGB(255, 255, 255)
</ParamField>

Custom Print returns as a table with the following fields:

<ResponseField name="message.update_message" type="function">
  <Expandable title="properties">
    <ResponseField name="message" type="string" required>
      The message that is going to be updated
    </ResponseField>

    <ResponseField name="image" type="String">
      a rbxassetid:// image that will be displayed as the icon. Defaults to ""
    </ResponseField>

    <ResponseField name="color" type="Color3">
      The color of the message, Defaults to Color3.fromRGB(255, 255, 255)
    </ResponseField>
  </Expandable>
</ResponseField>

## Examples

<CodeGroup>
  ```lua message_only.lua theme={null}
  local console = loadstring(game:HttpGet("https://raw.githubusercontent.com/notpoiu/Scripts/main/utils/console/main.lua"))()

  console.custom_print("[ConsoleUtils]: Example script 😎")
  ```

  ```lua message_and_icon.lua theme={null}
  local console = loadstring(game:HttpGet("https://raw.githubusercontent.com/notpoiu/Scripts/main/utils/console/main.lua"))()

  console.custom_print({
    message = "[ConsoleUtils]: Example script 😎",
    image = "rbxasset://textures/AudioDiscovery/done.png"
  })
  ```

  ```lua message_icon_and_color.lua theme={null}
  local console = loadstring(game:HttpGet("https://raw.githubusercontent.com/notpoiu/Scripts/main/utils/console/main.lua"))()

  console.custom_print({
    message = "[ConsoleUtils]: Example script 😎",
    image = "rbxasset://textures/AudioDiscovery/done.png",
    color = Color3.fromRGB(255, 0, 0)
  })
  ```

  ```lua message_editing.lua theme={null}
  local console = loadstring(game:HttpGet("https://raw.githubusercontent.com/notpoiu/Scripts/main/utils/console/main.lua"))()

  local message = console.custom_print("[ConsoleUtils]: Im editing the message in 5 seconds")

  task.wait(5)

  message.update_message({
    message = "[ConsoleUtils]: Im done editing the message",
    image = "rbxasset://textures/AudioDiscovery/done.png",
    color = Color3.fromRGB(255, 0, 0)
  })
  ```
</CodeGroup>
