Handles messaging like logging, debug, etc.
| Messages | Handles messaging like logging, debug, etc. |
| Functions | |
| tsay | Prints a message in talk say as well as in the user’s consoles. |
| tsayColor | Prints a tsay message in color! |
| tsayError | Just like tsay, but prints the string in red |
| csay | Prints a message in center of the screen as well as in the user’s consoles. |
| console | Prints a message in the user’s consoles. |
| error | Gives an error to console. |
| debugFunctionCall | Prints a function call, very useful for debugging. |
function ULib.tsay( ply, msg, wait, wasValid )
Prints a message in talk say as well as in the user’s consoles.
| ply | The player to print to, set to nil to send to everyone. (Ignores this param if called on client) |
| msg | The message to print. |
| wait | (Optional, defaults to false) Wait one frame before posting. (Useful to use from things like chat hooks) |
| wasValid | (INTERNAL USE ONLY) This is flagged on waiting if the player was valid. |
| v2.10 | Initial |
function ULib.tsayColor( ply, wait, ... )
Prints a tsay message in color!
| ply | The player to print to, set to nil to send to everyone. (Ignores this param if called on client) |
| wait | (Optional, defaults to false) Wait one frame before posting. (Useful to use from things like chat hooks) |
| ... | color arg and text arg ad infinitum, color needs to come before the text it’s coloring. |
| v2.40 | Initial. |
function ULib.tsayError( ply, msg, wait )
Just like tsay, but prints the string in red
| ply | The player to print to, set to nil to send to everyone. (Ignores this param if called on client) |
| msg | The message to print. |
| wait | (Optional, defaults to false) Wait one frame before posting. (Useful to use from things like chat hooks) |
| v2.40 | Initial. |
function ULib.csay( ply, msg, color, duration, fade )
Prints a message in center of the screen as well as in the user’s consoles.
| ply | The player to print to, set to nil to send to everyone. (Ignores this param if called on client) |
| msg | The message to print. |
| color | (Optional, defaults to 255, 255, 255, 255) The color of the text. |
| duration | (Optional) The amount of time to show the text. |
| fade | (Optional, defaults to 0.5) The length of fade time |
| v2.10 | Added fade parameter. Fixed it sending the message multiple times. |
| v2.40 | Changed to use clientRPC. |
function ULib.debugFunctionCall( name, ... )
Prints a function call, very useful for debugging.
| name | The name of the function called. |
| ... | all arguments to the function. |
| v2.40 | Now uses print instead of Msg, since Msg seems to have a low max length. Changed how the variable length params work so you can pass nil followed by more params |
Prints a message in talk say as well as in the user’s consoles.
function ULib.tsay( ply, msg, wait, wasValid )
Prints a tsay message in color!
function ULib.tsayColor( ply, wait, ... )
Just like tsay, but prints the string in red
function ULib.tsayError( ply, msg, wait )
Prints a message in center of the screen as well as in the user’s consoles.
function ULib.csay( ply, msg, color, duration, fade )
Prints a message in the user’s consoles.
function ULib.console( ply, msg )
Gives an error to console.
function ULib.error( s )
Prints a function call, very useful for debugging.
function ULib.debugFunctionCall( name, ... )