Skip to content

10% off shop orders, applied at checkoutBlack Friday: 30% off until Dec 1Server templatesServer templates

RPScripts

FiveM Police Scripts

CAD

Hamz CAD

Frameworks:
  • ESX

Checked by the RPScripts Lab

  • Static check: all 3 resources read
What was checked
Check compatibility with your server

Details

Frameworks
ESX
File size
3.7 MB
Licence and support terms
  • Licence: for your own server or project. No resale or sharing.
  • Updates: when a newer file is available, it appears in your account downloads.
  • Support: download access and product-specific setup questions.
Licence and support terms

Description

Hamz CAD is a web-based computer-aided dispatch system for FiveM roleplay servers. It runs on your own web server and connects to the game through the included FiveM resources and a Discord bot.

Features

  • Discord-based permissions, so there are no manual CAD access requests
  • Detailed Discord logging
  • Civilian system with character registration
  • DMV system
  • LEO system with name and plate checks, BOLOs and arrest records
  • Fire/EMS system
  • Dispatcher system with active calls, unit pings, panic button, signal 100 and fire tone sounds
  • Court system
  • Admin system with bans
  • API endpoints for name checks, plate checks, BOLO checks and active units
  • Free integrated FiveM Scripts and a free integrated Discord bot
  • Live chat

What's included

  • WEB FILES/hamzcad: the PHP web application
  • SQL FILES/hamzcad.sql: the database
  • FIVEM FILES: the hamz-cad resource, faxbase for notifications, hamz-wraith (Wraith radar) and hamzbot, a Node.js Discord bot with CAD name and plate commands
  • A document describing the 911 integration

Requirements

  • A web server with PHP and a MySQL/MariaDB database
  • A domain
  • Node.js for the Discord bot

Installation

  1. Create a MySQL/MariaDB database and import SQL FILES/hamzcad.sql into it. The file creates the tables only; config.php expects a database named hamzcad by default.
  2. Copy WEB FILES/hamzcad to your web server and edit config.php: BASE_URL, the database connection, the Discord settings (TOKEN, GUILD_ID, OAuth2 client ID and secret), the log channel IDs and $ADMINROLES, the Discord roles whose members can log in as admin and set the CAD permissions. The download ships two role IDs there; replace them with yours.
  3. Copy faxbase, hamz-cad and hamz-wraith from FIVEM FILES into your resources folder. Keep the name faxbase: its README warns that another name can break it.
  4. Set the address of your CAD in hamz-cad/server.lua: cadurl in the first line is the base address without a trailing slash, to which the script appends /api/namecheck and /api/platecheck. In hamz-wraith/svr_radar.lua, replace the full address in the two bolocheck requests (https://localhost/hamzcad/api/bolocheck/ in the download) with your CAD's /api/bolocheck/ address. The download ships other addresses in both files.
  5. Add ensure faxbase, ensure hamz-cad and ensure hamz-wraith to your server.cfg. In game, /namecheck (/nc) and /platecheck (/pc) query your CAD.
  6. For the Discord bot, open FIVEM FILES/hamzbot on the machine that runs it and run npm i (the included install.bat does this on Windows and writes a start.bat). Set token, prefix and CadURL in config.js and start it with node index.js. CadURL takes the address without a trailing slash. By default it answers !cadname and !cadplate. Its package.json depends on discord.js ^12.5.3.
Read more

Server setup

Step-by-step guide: how to install a FiveM script

Checked: all 3 resources of this download.

In your downloads
  • Origen Police
    • ESX
    • QBCore
    Not for your framework

    Origen Police (QBCore & ESX)

    Origen Network

    $23.00$16.10
  • CD Dispatch FiveM resource preview
    • ESX
    • QBCore
    Not for your framework

    CD Dispatch

    Codesign

    $20.00$14.00
  • MDT
    • ESX
    Not for your framework

    Police System CAD/MDT

    $24.99$17.49
  • Megaphone Mod (Vehicle & Handheld) FiveM resource preview
    • ESX
    • QBCore, Qbox
    Not for your framework

    Megaphone Mod (Vehicle & Handheld)

    ScriptsM

    $19.00$13.30
  • Advanced Police Job FiveM resource preview
    • ESX
    • QBCore, Qbox
    Not for your framework

    Advanced Police Job

    Wasabi Scripts

    $29.99$20.99
  • Prison
    • ESX
    • Standalone, QBCore, Qbox

    Prison all-in-one system

    rcore

    $32.00$22.40
  • Helicopter Camera FiveM resource preview
    • ESX
    • QBCore, Standalone

    Helicopter Camera

    Mads

    $12.00$8.40
  • BodyCam + Dashcam (Infinity & OneSync) FiveM resource preview
    • ESX
    Not for your framework

    BodyCam + Dashcam (Infinity & OneSync)

    $15.99$11.19