areas.listAll
Returns every area your gamemode made, whoever can see it.
Renamed in 0.28 from zones.all; see renamed names.
Signature
Section titled “Signature”areas.listAll(): readonly Area[]Parameters
Section titled “Parameters”None.
Returns
Section titled “Returns”A list of Area records. It does not change; call it again for a newer one.
Example
Section titled “Example”import { areas, server } from "nativemp";
server.log(`${areas.listAll().length} areas`);Related
Section titled “Related”areas.create: make oneareas.update: change itareas.destroy: remove itareas.getById: one of them