Skip to content

Austinb96/zero_utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PrintUtils Documentation

##WIP ONE DAY ILL UPDATE THIS

Installation

If you wish to prevent debug prints in a live environment you can use this convar in the server.cfg

    setr DisableDebug true

Using Import

    shared_scripts {
        -- 'config/*.lua',  --make you config load first
        '@zero_utils/init.lua',
    }
    --for debug add Config.Debug.PrintDebug for debug prints to to show up when true
    Config = {
        Debug = {
            PrintDebug = true,
        }
    }

    --examples
    printdb("Hello %s", "world")  --will print "Hello World" only if you pass in a true value to the export
    printdb(true, "Hello %s", "world")  --will print "Hello World" will print regardless of whats passed if if first arg is true
    printerr("This is an %s Error", "cool") -- will throw an error with set formatting.
    printwarn("This is a %s warning", "final") -- will throw a warning with set formatting
    printtable(Config) --will print out a table with pretty colors
    Color  --a list of colors available if you ever want to use them in prints

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages