Open Road MP

mp.zones

Areas on the map with enter/leave events: depots, race checkpoints, speed zones, no-go areas.

create

mp.zones.create(init: ZoneInit): Zone

Creates an area. Players driving in or out get playerEnterZone / playerLeaveZone.

Types: ZoneInit, Zone

get

mp.zones.get(id: number): Zone | undefined

The zone with this id, or undefined.

Types: Zone

all

mp.zones.all(): readonly Zone[]

Every zone of this gamemode.

Types: Zone

at

mp.zones.at(position: Vector3): readonly Zone[]

The zones a position is in.

Types: Vector3, Zone

On this page