moonscript
Search…
Render

render.string

1
render.string(text, x, y, color)
Copied!
Argument
Object
Description
text
String
Text being displayed
x
Number
Text x position
y
Number
Text y position
color
Number
Text color
Draws a text on your screen.

render.stringShadowed

1
render.stringShadowed(text, x, y, color)
Copied!
Argument
Object
Description
text
String
Text being displayed
x
Number
Text x position
y
Number
Text y position
color
Number
Text color
Draws a shadowed text on your screen.

render.stringWidth

1
render.stringWidth(text) - Number
Copied!
Argument
Object
Description
text
String
Text getting checked
Returns the width of a supplied text.

render.textHeight

1
render.textHeight() - Number
Copied!
Returns the text height.

render.stringHeight

1
render.stringHeight(text) - Number
Copied!
Argument
Object
Description
text
Number
The text which will the height will be retreived of
Returns the height of a specific text.

render.rect

1
render.rect(x, y, width, height, color)
Copied!
Argument
Object
Description
x
Number
Pos x
y
Number
Pos y
width
Number
Rect width
height
Number
Rect height
color
Number
Rect color
Draws a rectangle on the screen.

render.outlinedRect

1
render.outlinedRect(x, y, width, height, outlineWidth, outlineColor, color)
Copied!
Argument
Object
Description
x
Number
Pos x
y
Number
Pos y
width
Number
Rect width
height
Number
Rect height
outlineWidth
Number
Outline width
outlineColor
Number
Outline color
color
Number
Rect color
Draws a rectangle with an outline on the screen.

render.roundedRect

1
render.roundedRect(x, y, width, height, radius, color)
Copied!
Argument
Object
Description
x
Number
Pos x
y
Number
Pos y
width
Number
Rect width
height
Number
Rect height
radius
Number
Rounding width
color
Number
Rect color
Draws a smooth rounded rectangle on the screen.

render.circle

1
render.circle(x, y, radius, color)
Copied!
Argument
Object
Description
x
Number
Pos x
y
Number
Pos y
radius
Number
Circle radius
color
Number
Circle color
Draws a smooth circle on the screen.

render.renderEntity

1
render.renderEntity(entityName, x, y, scale, yaw, pitch)
Copied!
Argument
Object
Description
entityName
String
Name of the entity
x
Number
Pos x
y
Number
Pos y
scale
Number
Entity scale
yaw
Number
Entity yaw
pitch
Number
Entity pitch
Renders an entity on your screen (2D / HUD).

render.outlinedRectRounded

1
render.outlinedRectRounded(x, y, width, height, radius, outlineColor, color)
Copied!
Argument
Object
Description
x
Number
Pos x
y
Number
Pos y
width
Number
Width
height
Number
Height
radius
Number
Corner radius
outlineColor
Number
Outline color
color
Number
Inner color

render.renderItemOf

1
render.renderItemOf(entityName, x, y, slot)
Copied!
Argument
Object
Description
entityName
String
The name of the entity
x
Number
Pos x
y
Number
Pos y
slot
Number
The slot that should be rendered
Renders an item out of the inventory of another player.

render.renderItem

1
render.renderItem(x, y, slot)
Copied!
Argument
Object
Description
x
Number
Pos x
y
Number
Pos y
slot
Number
The slot that should be rendered
Renders an item out of your inventory.

render.renderPosX

1
render.renderPosX() - Number
Copied!
Returns the render pos x.

render.renderPosY

1
render.renderPosY() - Number
Copied!
Returns the render pos y.

render.renderPosZ

1
render.renderPosZ() - Number
Copied!
Returns the render pos z.

render.cString

1
render.cString(text, x, y, color)
Copied!
Argument
Object
Description
text
String
Text being rendered
x
Number
Text x
y
Number
Text y
color
Number
Text color
Renders a string in the client font.

render.cStringShadowed

1
render.cStringShadowed(text, x, y, color)
Copied!
Argument
Object
Description
text
String
Text being rendered
x
Number
Text x
y
Number
Text y
color
Number
Text color
Renders a shadowed string in the client font.

render.cStringWidth

1
render.cStringWidth(text) - String
Copied!
Argument
Object
Description
text
String
Text getting checked
Returns the width of a client font text.

render.cTextHeight

1
render.cTextHeight() - String
Copied!
Returns the client font height.

Last modified 6mo ago