CAD Display

This submodule enables your passengers to view your CAD screen in real time via an in-vehicle laptop, handheld, tablet, or laptops placed around the map.

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/caddisplay_config.lua file.

User-facing notifications for all FiveM submodules are now configured centrally in /configuration/config.json using notificationSystem.

Supported values:

  • auto

  • ox_lib

  • lation_ui

  • pnotify

  • chat

When set to auto, Sonoran CAD will choose the first available system in this order:

  1. ox_lib

  2. lation_ui

  3. pnotify

  4. chat

Default caddisplay_config.lua

Commands

In-game commands can be used to

  • /caddisplay Opens the CAD Display configuration menu

Keybind

Users can customize a keybind to interact with a nearby CAD display.

Navigate to Settings > Keybinds > FiveM and look for the keybinds under the resource sonorancad.

Usage

a. Prop Spawning

You can spawn a CAD Display laptop prop using the in-vehicle menu, which is accessed via the /caddisplay command. By default, this command requires the sonoran.caddisplay ACE permission.

Following the menu instructions, you can customize the laptop’s placement within your vehicle. Once you are satisfied with the placement, you may close the menu and the display will remain in your vehicle for the duration of its spawn.

If you have the sonoran.caddisplay.admin ACE permission, you also have the option to save the placement for all vehicles using that spawn code. This ensures the placement is automatically applied to all future spawns of that vehicle.

SonoranCAD - CAD Display - Menu
Sonoran CAD - CAD Display - Main Menu
Sonoran CAD CAD Display - Spawning Menu
Sonoran CAD - CAD Display - Attaching Menu
Sonoran CAD - CAD Display - Delete Menu

b. Using Built-in Laptops

You can also use your vehicle’s built-in laptop as the CAD Display, without spawning a separate laptop prop.

b. Continued
  1. This option requires additional configuration and third-party software. To begin, navigate to the caddisplay_config.lua file located in the /sonorancad/configuration folder. The builtinScreens section of this configuration file is where you define vehicles equipped with built-in laptops.

  2. To obtain the texture name you will need to use a third-party software such as OpenIV.

  3. Within OpenIV, click File in the top-right corner, then select Open Folder and navigate to the folder containing your vehicle files

OpenIV - Open Folder Button
OpenIV - File Explorer
  1. Once OpenIV opens your selected folder, you will see your vehicle files. From here, open the SPAWNCODE.ytd file. A .ytd file is a texture dictionary that contains the textures used by the vehicle, such as screens, decals, and interior displays. For this tutorial, the spawn code used is b3.

OpenIV - YTD Viewer
  1. Within the OpenIV Texture Viewer, scroll through the textures and locate the laptop screen texture. In the case of b3, the texture name is laptop_screen. Some vehicles may include multiple screen textures; ensure you select the one used for the in-vehicle laptop display.

OpenIV - YTD Viewer - Laptop Screen Texture
  1. Now that all required information has been gathered, you can begin adding it to the configuration. Be sure to note the texture’s dimensions as shown in OpenIV, as this information is required for proper display.

    Important: The texture dimensions must match exactly, or the display may not render correctly.

    For the tutorial vehicle, the configuration should appear as follows:

c. Using the Screen

While inside a supported vehicle, either with a placed laptop prop or a configured built-in screen, look at the laptop and press the default keybind G to take control of the display.

This submodule also allows the CAD Tablet to mirror your screen in real time. Once the tablet is active and your CAD is open, you and others around you will see your CAD screen mirrored onto the tablet prop in your hand.

d. Passing Laptop Control

To transfer control of an in-vehicle laptop, have your passenger look at the laptop and press the default keybind G. This will send a control request to the current user.

Only one player may control the laptop at a time.

You can then press Y to accept the request or L to deny it. If accepted, the laptop will begin mirroring the passenger’s CAD Tablet.

Station CAD Display Props

Additionally, you can spawn laptops in police stations or other areas around the map as Station CAD Displays. These CAD displays will stay at the location permanent.

Last updated

Was this helpful?