Civilian Integration

Allows players to fetch ID information from the CAD on demand.

Sonoran CAD - Civilian Integration Lookup

Activation Guide

1. Download and Install the Resource

This submodule is already enabled by default when installing the Sonoran CAD FiveM resource.

2. Adjust the Configuration

The CAD display settings are stored inside of the /configuration/civintegration_config.lua file.

3. Ensure Players are Linked

Ensure the player has already linked their CAD for this integration to work.

Configuration

civintegration_config.lua
Option
Description
Default Value

cacheTime

Time to cache characters in seconds

3600

allowCustomIds

Allow players to use /setid to set a custom name.

true

allowPurge

Allow players to use /refreshid to "purge" their character list from cache.

true

enableIDCardUI

Recommended: Allows for a more realistic identification ui with /showid IF USING: Please ensure you start the resource sonoran_idcard BEFORE sonorancad in your server resource start order

false

Usage

Commands

In-game commands can be used to

  • /civid show Show the ID of your currently selected character in the CAD to the nearest player.

    • If using the /civid set command, it will show your manually configured character info instead of from the CAD.

  • /civid set Manually enter character information for your ID.

  • /civid reset Result the manually entered character information for your ID.

  • /civid refresh Removes the "cached" characters for the client. This allows players to swap characters in the CAD without relogging or waiting for the cache timer.

  • /civid help Displays a list of commands.

Export

You can use this export to fetch all characters for a specific player ID. This is a server-side export only.

This function can also be used in other submodules (without the export bit).

Last updated

Was this helpful?