Lookups
Implements name and plate lookups via the CAD.
This plugin utilizes API endpoints that require the plus version of Sonoran CAD or higher. For more information, view our pricing page.
This plugin is currently only used as a dependency for other plugins, 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 plugin Implements name and plate lookups via the CAD.

Installation Video

Be sure you have already installed our plugin framework!

Installation Guide

1. Download and Install the Framework

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

2. Download the Plugin

  1. 1.
    Click HERE to download the lookups plugin .zip file.

3. Install the Plugin

  1. 1.
    Follow the standard plugin installation guide for the lookups plugin.

4. 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.
Option
Description
Default
maxCacheTime
How long to cache a looked-up plate.
120 seconds
stalePurgeTimer
How long between "stale" plate cleanups (keep unscanned plates)
600 seconds (10 minutes)

Usage

Exported Functions

NOTE: For return object definitions, see the Developer Documentation.
Function
Arguments
Description
Returns
cadNameLookup
FirstName, MiddleInitial, LastName, callback
Looks up a character based on the arguments specified.
Objects containing character data and all associated objects.
cadPlateLookup
plate, basicFlag, callback, autoLookup
Looks up a vehicle based on specified plate number.
Objects containing vehicle data and all associated objects.

Function Details

1
--[[
2
cadNameLookup
3
first: First Name
4
last: Last Name
5
mi: Middle Initial
6
callback: function called with return data
7
]]
8
function cadNameLookup(first, last, mi, callback)
9
10
--[[
11
cadPlateLookup
12
plate: plate number
13
basicFlag: true returns cached record if possible which only contains vehicleRegistrations object, false calls the API
14
callback: the function called with the return data
15
autoLookup: when populated with an API ID, pops open a search window on the officer's CAD (optional)
16
]]
17
function cadPlateLookup(plate, basicFlag, callback, autoLookup)
Copied!

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 modified 1yr ago