Skip to main content
Looking for FiveM hosting? View our current hosting offer.

Activation Video

Click to view our locations and postal install video.

Activation Guide

Download and Install the Core

If you haven’t already, be sure to install and configure the SonoranCAD Core first.

Activate the Submodule and all Dependencies

Open Admin > Integrations > FiveM, select the server, then open Postals. Enable the plugin with the header toggle and review the settings below. Changes save automatically. When saved, run exec @sonorancad/sonorancad.cfg in your server console to apply them. See Submodule Configuration for requirements, reset, and migration details.

Configure Postal Script and Exports

Choose Mode below, then follow the matching resource, file, or event instructions in Usage.

Configuration

Usage

If the configured postal resource or custom postal data is unavailable at runtime, SonoranCAD will now continue sending regular street names and coordinate-based location updates without a postal prefix. Check the troubleshooting error codes ERR-LOC-104, ERR-LOC-105, and ERR-LOC-106 if postal data is missing or failing.

Using Nearest-Postal

The plugin only supports 1.5.0 or higher of the nearest-postal plugin. Be sure to download the latest version before using.
If you’re using the publicly available nearest-postal script, some minor configuration is required.

Set the Resource Name

Set Mode to Nearest postal resource. Enter the exact installed resource folder name in Nearest postal resource name, such as nearest-postal. The resource must provide the getPostal export; entering an unrelated HUD name will not work.

Ensure Proper Startup Order

Be sure that you are starting the nearest-postals addon/resource before/above where you ensure sonorancad in your server.cfg. Be sure to restart both the Sonoran CAD resource and the nearest-postal script, or restart your server entirely to apply the changes made.

Custom Postal Codes File

Set Mode to Custom postal file. Place your JSON file in sonorancad/submodules/postals and enter its filename, including .json, in Custom postal codes file. The current resource already includes JSON files in this folder in its manifest. Each entry needs a postal code and numeric map coordinates:
Changes save automatically. When saved, run exec @sonorancad/sonorancad.cfg in your server console to apply them.

Custom Postal Events

Set Mode to Resource event and enter the event name in Nearest postal event. Your postal resource must trigger that client-side event with the player’s current postal whenever it changes. For example, if the field is my_postals:changed:
This mode listens for updates; it does not call an export to request them.

Troubleshooting

If postal lookup fails, location updates for units will still continue using normal street/location data. Postal-specific failures now surface through the troubleshooting codes below instead of stopping all location updates:
  • ERR-LOC-104: postal resource unavailable
  • ERR-LOC-105: configured postal file missing or invalid
  • ERR-LOC-106: postal lookup failed at runtime
See the FiveM error codes reference for the full descriptions and recommended fixes.

The configured postals file (postals_file.json) was not found

Confirm the JSON file is in sonorancad/submodules/postals, its filename matches Custom postal codes file, and each entry contains code, x, and y. Use the current resource manifest, which includes submodules/postals/*.json, then restart the resource.