Skip to content
M2O Scripting APIScripting reference
Global objectClient APIGenerated

Render2D

const Render2D: object

Defined in: client/api.d.ts:617

Creates resource-owned retained user interfaces through Mafia II’s native Render2D system.

createCanvas(options?): Render2DCanvas

Creates a canvas owned by the calling client resource.

Render2DCanvasOptions

Render2DCanvas

destroyAll(): void

Destroys every Render2D canvas owned by the calling resource.

void

isAvailable(): boolean

Checks whether the native Render2D module and context are available.

boolean