DirkScripts Documentation
  • 👋Welcome
  • The Basics
    • ⬇️Installing Resources
  • Resources
    • 📚Dirk Lib
      • Getting Started
      • Cache
      • Modules
        • Await
        • Blip
        • Callback
        • Camera
        • File
        • Interact
        • Objects
        • Player
          • Client
          • Server
        • Groups
          • Client
          • Server
        • Print
        • Request
        • Table
        • Target
        • Zones
        • UI
          • Context
          • Untitled
    • 🔧Project Cars
      • Installation
      • Tools
      • Parts
      • Commands
    • 🤼Multicharacter
      • Installation
      • Configuration
      • Exports
      • F.A.Q
      • Commands
    • 💊Drug Labs v2
      • Installation
      • Tebex Integration
      • Creating Labs
  • 🛒Store
  • 🗣️Discord
  • 🖥️GitHub
Powered by GitBook
On this page
  • lib.print
  • lib.addPrintType
Export as PDF
  1. Resources
  2. Dirk Lib
  3. Modules

Print

Simple dev tool for printing information and warnings to console

Shared Module - This can be used by both clients and the server

lib.print

Print some information to the console

The debug type can only be used in debug mode.

lib.print(_type, ...)

-- Example
lib.print("debug", "Example print")
Parameter
Type
Required
Description

_type

String

Type of print - info, warn, error or debug

...

Any

Debug info

lib.addPrintType

Add a new of print to be used

lib.addPrintType(_type, prefix, condition)
Parameter
Type
Required
Description

_type

String

Unique print type

prefix

String

What should be prefixed in front of the debug

condition

Function

Callback to check if it should print

PreviousServerNextRequest

Last updated 10 months ago

📚