Skip to content

textLabels.listAll

Returns every text label your gamemode made, whoever can see it.

Renamed in 0.28 from labels.all; see renamed names.

textLabels.listAll(): readonly TextLabel[]

None.

A list of TextLabel records. It does not change; call it again for a newer one.

gamemodes/my-mode.ts
import { textLabels, server } from "nativemp";
server.log(`${textLabels.listAll().length} text labels`);