Skip to content

Print Functions

googer_ edited this page Nov 13, 2024 · 1 revision

About Ext_Print

  1. By default Garry's Mod doesn't have a nice way to print stuff from addons and little to no one bothers to add proper logging with identifying the addon. Thorium solves that problem by creating new print functions.
  2. This extension in general adds functions that print out data nicer.

Capability ext_print

Info

  • ID: alt text ext_print

Functions

alt text printf(text: string, ...: any)
Similar to print, with the exception of that it automatically formats first string with arguments

alt text Log(text: string, ...: any)
Same as printf, but appends addon name at the start

alt text Debug(text: string, ...: any)
Same as printf, but appends a bunch of info about caller at the start

alt text PrintTable(tbl: table, indent: integer, done: table)
Prints table

Clone this wiki locally