Render2D
constRender2D:object
Defined in: client/api.d.ts:617
Creates resource-owned retained user interfaces through Mafia II’s native Render2D system.
Type Declaration
Section titled “Type Declaration”createCanvas()
Section titled “createCanvas()”createCanvas(
options?):Render2DCanvas
Creates a canvas owned by the calling client resource.
Parameters
Section titled “Parameters”options?
Section titled “options?”Returns
Section titled “Returns”destroyAll()
Section titled “destroyAll()”destroyAll():
void
Destroys every Render2D canvas owned by the calling resource.
Returns
Section titled “Returns”void
isAvailable()
Section titled “isAvailable()”isAvailable():
boolean
Checks whether the native Render2D module and context are available.
Returns
Section titled “Returns”boolean
