Text
Sandbox.Game
void Text( string text, Vector3 pos, int offset, Color color, float duration = 0, float maxDistance = 1500, )

Summary

Draw text in 3D space

Parameters

string text,

String to draw

Vector3 pos,

Position of the text

int offset,

What line to draw the text on or the line offset

Color color,

Text color

float duration = 0,

How long to keep the text visible for. A duration of 0 is 1 frame

float maxDistance = 1500,

Maximum distance in units the text should be visible for. If you exceed this distance the text is no longer drawn