-
Notifications
You must be signed in to change notification settings - Fork 0
Print Functions
googer_ edited this page Nov 13, 2024
·
1 revision
- 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.
- This extension in general adds functions that print out data nicer.
- ID:
ext_print

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

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

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

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