Skip to Content
Cobalt

cobalt_map

Minimap styling and postal codes.

GetNearestPostal

Client

Returns the postal nearest to the coords, or to the player.

exports.cobalt_map:GetNearestPostal(coords)
ParameterTypeOptionalDescription
coordsvector3Yes
ReturnsDescription
MapPostalpostal
numberdistance meters
Example
local postal, distance = exports.cobalt_map:GetNearestPostal(vector3(215.8, -810.1, 30.7))

On this page