All CDE CAD blog posts

CDE CAD API for FiveM Developers

CDE CAD API documentation and integration guide for FiveM developers. REST API, webhooks, Discord bots, custom scripts, and in-game resource development.

FiveM developers need a CAD system that does not lock them into a closed ecosystem. CDE CAD provides a comprehensive API that enables developers to build custom integrations, extend core functionality, and connect the CAD with their existing FiveM resources and Discord bots. Whether you are writing Lua scripts, building Node.js applications, or creating custom web dashboards, the CDE CAD API gives you full programmatic access.

REST API Overview

The CDE CAD REST API provides endpoints for all major CAD operations. Query person records, search vehicles, create incidents, update unit statuses, and manage dispatch operations programmatically. The API uses standard HTTP methods with JSON request and response bodies, making it compatible with virtually any programming language or framework.

Authentication uses API keys that can be scoped to specific permissions, ensuring that custom integrations only have access to the data and operations they need. Rate limiting is implemented to prevent abuse while allowing sufficient throughput for real-time in-game integrations.

The API documentation includes complete endpoint references, request and response examples, error handling guides, and best practices for building performant integrations. Code samples are provided in JavaScript, Python, Lua, and C# to help developers get started quickly regardless of their preferred language.

Webhooks & Real-Time Events

REST API

Full programmatic access to records, dispatch, units, and CAD operations via standard HTTP endpoints.

Webhooks

Real-time event notifications pushed to your applications when CAD events occur.

FiveM Resource

Open-source Lua resource for direct in-game CAD integration with your FiveM server.

API Key Security

Scoped API keys with granular permissions for secure third-party integrations.

FiveM In-Game Integration

The CDE CAD FiveM resource is available as an open-source Lua script that provides direct in-game CAD access. Officers can run plates, search names, update their status, and view dispatch information without leaving the game. The resource communicates with the CDE CAD API over HTTP, making it easy to modify and extend for your server's specific needs.

Developers can extend the base resource with custom commands, NUI interfaces, and additional functionality that ties into their server's other scripts. For example, you can trigger CAD lookups automatically when a player performs a traffic stop action, or update unit locations based on in-game GPS coordinates.

The resource is designed to be lightweight and non-intrusive, with minimal impact on server performance. All API calls are asynchronous to prevent blocking the game thread, and response data is cached locally where appropriate to reduce unnecessary network requests.

Discord Bot Integration

Many FiveM communities use Discord as their primary communication platform, and CDE CAD integrates natively with Discord for authentication and notifications. Developers can build custom Discord bots that interact with the CAD API to provide additional functionality specific to their community's workflow.

Common Discord integrations include automatic role assignment based on CAD department membership, bot commands for quick name and plate lookups from Discord channels, duty roster displays that show who is currently on duty in the CAD, and webhook-driven notifications for new calls, BOLOs, and critical incidents.

Continue exploring CDE CAD

  • All blog posts
  • Features
  • Pricing
  • Comparison vs other FiveM CAD systems
  • FAQ
  • Get started
  • Documentation
  • FiveM integration (ESX, QBCore, vRP)
  • Community directory

CDE CAD is a professional Computer-Aided Dispatch (CAD) and Mobile Data Terminal (MDT) platform for FiveM roleplay servers. Native support for ESX, QBCore and vRP. Plans from $15 per month.