Garry's Mod Wiki


  debugoverlay.Cross( Vector position, number size, number lifetime = 1, table color = Color( 255, 255, 255 ), boolean ignoreZ = false )


Creates a coloured cross at the specified position for the specified time.

This function will silently fail if the developer ConVar is set to 0. It is not networked to clients, except for the listen server host.


1 Vector position
Position origin
2 number size
Size of the cross
3 number lifetime = 1
Number of seconds the cross will appear for
4 table color = Color( 255, 255, 255 )
The color of the cross. Uses the Color
5 boolean ignoreZ = false
If true, will draw on top of everything; ignoring the Z buffer