Skip to content

Debugger Client

A module to use debugger module client side.

JO Functions

jo.debugger.drawSphere()

Draws a 3D sphere at the specified coordinates.

Syntax

lua
jo.debugger.drawSphere(coords, size, color)

Parameters

coords : vector

The coordinates where the sphere will be drawn

size : vector Optional

The size of the sphere in x,y,z dimensions - default:vec3(0.5, 0.5, 0.5)

color : table Optional

The color of the sphere

color.r : number - Red component 0-255 - default:255

color.g : number - Green component 0-255 - default:0

color.b : number - Blue component 0-255 - default:0

color.a : number - Alpha/transparency 0-255 - default:100

Example

lua
local coords = vec3(1234.56, 789.01, 123.45)
local size = vec3(0.7, 0.7, 0.7)
local color = { r = 0, g = 255, b = 0, a = 150 }
jo.debugger.drawSphere(coords, size, color)

jo.debugger.drawText()

Draws text on the screen with specified parameters.

Syntax

lua
jo.debugger.drawText(text, x, y)

Parameters

text : string

The text content to be displayed

x : number Optional

The x-coordinate position on screen - default:0.01

y : number Optional

The y-coordinate position on screen - if not provided, uses and increments the global offset

Example

lua
-- Drawing text at a specific position
jo.debugger.drawText("Player Health: 100", 0.5, 0.2)

jo.debugger.resetText()

Resets the text display offset to its starting position.

Syntax

lua
jo.debugger.resetText()

Example

lua
jo.debugger.drawText("First line")

jo.debugger.resetText()

jo.debugger.drawText("New first line")

Last updated: