Personal tools

Lua/Client/Render

From JC2-MP Documentation

< Lua‎ | Client
Jump to: navigation, search

Functions

Returns Prototype
DrawCircle(Vector2, number, Color)
DrawCircle(Vector3, number, Color)
DrawLine(Vector3, Vector3, Color)
DrawLine(Vector2, Vector2, Color)
DrawText(Vector2, string, Color, number, number)
DrawText(Vector3, string, Color, number, number)
DrawText(Vector2, string, Color, number)
DrawText(Vector3, string, Color)
DrawText(Vector3, string, Color, number)
DrawText(Vector2, string, Color)
FillArea(Vector3, Vector3, Color)
FillArea(Vector2, Vector2, Color)
FillCircle(Vector2, number, Color)
FillCircle(Vector3, number, Color)
FillTriangle(Vector3, Vector3, Vector3, Color)
FillTriangle(Vector2, Vector2, Vector2, Color)
boolean GetDepthEnabled()
number GetTextHeight(string)
number GetTextHeight(string, number, number)
number GetTextHeight(string, number)
Vector2 GetTextSize(string, number, number)
Vector2 GetTextSize(string)
Vector2 GetTextSize(string, number)
number GetTextWidth(string, number)
number GetTextWidth(string, number, number)
number GetTextWidth(string)
ResetFont()
ResetTransform()
Vector3 ScreenToWorldDirection(Vector2)
SetClip(bool)
SetClip(bool, Vector2, Vector2)
SetFont(AssetLocation, string)
SetTransform(Transform2)
SetTransform(Transform3)
Vector2, boolean WorldToMinimap(Vector3)
Vector2, boolean WorldToScreen(Vector3)

Properties

Name Type
Height number
Size Vector2
Width number