Lookups

Implements name and plate lookups via the CAD.

This submodule utilizes API endpoints that require the plus version of Sonoran CAD or higher. For more information, view our pricing page.

This submodule is currently only used as a dependency for other submodules , and does not have any in-game commands for general player usage.

Looking for VPS, web, or dedicated hosting? Check out our official server hosting!

This submodule Implements name and plate lookups via the CAD.

Activation Video

Click to view our WraithV2 plate reader and lookup installation video.

Activation Guide

1. Download and Install the Core

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

2. Activate the Submodule and all Dependencies

Follow the submodule activation guide for the required submodules.

3. Set Your API ID

Don't forget to set your account API ID to properly link your in-game user to the CAD.

Configuration

Do not set the cache timer too low or you may run into rate limiting.

Usage

Exported Functions

NOTE: For return object definitions, see the Developer Documentation.

Function Details

--[[
    cadNameLookup
        first: First Name
        last: Last Name
        mi: Middle Initial
        callback: function called with return data
]]
function cadNameLookup(first, last, mi, callback)

--[[
    cadPlateLookup
        plate: plate number
        basicFlag: true returns cached record if possible which only contains vehicleRegistrations object, false calls the API
        callback: the function called with the return data
        autoLookup: when populated with an API ID, pops open a search window on the officer's CAD (optional)
]]
function cadPlateLookup(plate, basicFlag, callback, autoLookup)

For Developers

This plugin also adds the commands namefind and platefind which takes the above arguments and prints the returned JSON object to the console.

Last updated