DOT System

DOT System DOT System
  • DOT System
  • DOT System

$5.99

Add to Basket

Description


The DOT Script is a script for FiveM that allows players to manage DOT (Department of Transportation) calls. Players can go on duty, respond to calls, and close calls using simple chat commands. The script also sends notifications to a Discord channel for DOT activities.


How to Use


Commands


1. /dotonduty

   - Description: Go on duty as a DOT worker.

   - Usage: /dotonduty

   - Example: Type /dotonduty in the chat to go on duty.


2. /dotoffduty

   - Description: Go off duty as a DOT worker.

   - Usage: /dotoffduty

   - **Example**: Type /dotoffduty in the chat to go off duty.


3. /dot [Location] [Vehicle License Plate] [Reason for Tow Request]

   - Description: Make a DOT call with specific information.

   - Usage: /dot [Location] [Vehicle License Plate] [Reason for Tow Request]

   - Example: /dot Main St XYZ123 Broken down vehicle


4. /dotresp [Call ID]

   - Description: Respond to a specific DOT call by Call ID.

   - Usage: /dotresp [Call ID]

   - Example: /dotresp 12345


5. /dotclose [Call ID]

   - Description: Close a specific DOT call by Call ID. Only the responding DOT player can close the call.

   - Usage: /dotclose [Call ID]

   - Example: /dotclose 12345


6. /staffdotcloseall

   - Description: Admin command to close all active DOT calls.

   - Usage: /staffdotcloseall

   - Example: Type /staffdotcloseall in the chat to close all active DOT calls.


Features


- Duty Management: Players can go on duty or off duty using simple commands.

- Call Management: Players can create DOT calls with specific information, respond to calls, and close calls.

- Discord Integration: Sends notifications to a Discord channel for DOT activities like going on duty, off duty, and creating or closing calls.


Installation


1. Download and Extract: Download the `marksmenmods_dot` script and extract it to your FiveM resources folder.

2. Add to Server.cfg: Add `start MM_DOT` to your `server.cfg` file.

3. Configure Discord Webhook: Edit the `config.lua` file to add your Discord webhook URL and customize other settings like embed color.


Configuration (`config.lua`)


```lua

Config = {}


-- Discord Webhook URL

Config.DiscordWebhook = "YOUR_DISCORD_WEBHOOK_URL_HERE"


-- Embed color for Discord messages (in RGB format)

Config.EmbedColor = { r = 255, g = 165, b = 0 } -- Orange color

```


Troubleshooting


- Discord Messages Not Sending: Ensure the webhook URL is correctly configured in the `config.lua` file.

- Commands Not Recognized: Ensure the resource is started correctly in your `server.cfg` file.