gui.AddCaption
Description
Pushes text to the closed caption box.
The function will not work, if the console command variable "closecaption" is set to 0.
Arguments
3 boolean fromPlayer = false
Is this caption coming from the player?
This is used to give different colors to the caption to differentiate, for example, whether the SMG is fired by the player or NPC.
Example
Prints "Hello World" in bold