Skip to content
This repository has been archived by the owner on Aug 18, 2020. It is now read-only.

Commit

Permalink
Merge pull request #5 from blockba5her/v2.0
Browse files Browse the repository at this point in the history
v2.0 pull request
  • Loading branch information
DevBlocky committed Nov 12, 2017
2 parents 049461c + 8031121 commit a47a6cc
Show file tree
Hide file tree
Showing 111 changed files with 4,994 additions and 17,818 deletions.
46 changes: 14 additions & 32 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,61 +1,43 @@
# Dispatch Systems

> Dispatch Systems is a CAD/MDT system for ingame FiveM use, this is not a permenant solution, but it works for free. This is an open source free project courtesy of BlockBa5her (the coder). It is free for anyone to use, as long as they do not re-distribute the software under their own name. It does not store data in CouchDB and MySQL so EssentialMode is not needed. It stores all of the player's information in the RAM of the computer, so the next restart of the server clears all of the names that it has stored.
[![Discord](https://discordapp.com/api/guilds/358081805850640384/widget.png)](https://discord.gg/ZcTayce)

> Dispatch Systems is a CAD/MDT system for ingame FiveM use, this is not a permenant solution, but it works for free. This is an open source free project courtesy of BlockBa5her (the coder). It is free for anyone to use, as long as they do not re-distribute the software under their own name. It does not store data in CouchDB and MySQL so EssentialMode is not needed. It stores all of the player's information in the RAM of the computer, so the next restart of the server clears all of the names that it has stored. It now also comes with database settings for saving Civilian Profiles and Vehicles to 2 files.
## Uses

* For a community just starting up and not having the money to pay for a CAD/MDT system that costs money
* Easy use with long lasting terms
* Terminal outside of game for Dispatcher use
* Built in 911 calling system
* A great author that will always keep it updated
* C# with open source code
* Availability to everyone, not just people who pay
* Open for suggestions and always looking for more to add-on too
* Will always stay non-SQL/CouchDB based for easy use
* Will always stay non-SQL/CouchDB based for easy use (with included database settings)

## Pictures

> Click to view bigger image
<a href="https://i.gyazo.com/8a17a134ee59189a2cfff4eb0357490d.png" target="_blank"><img src="https://i.gyazo.com/8a17a134ee59189a2cfff4eb0357490d.png" width="500" alt="Civilian"></img></a>
<a href="https://i.gyazo.com/84d5a31c36cf3de3524f1ce1836f2d56.png" target="_blank"><img src="https://i.gyazo.com/84d5a31c36cf3de3524f1ce1836f2d56.png" width="500" alt="Police"></img></a>
<a href="https://i.gyazo.com/4f157544ededf220b90ae23a99736ff8.png" target="_blank"><img src="https://i.gyazo.com/4f157544ededf220b90ae23a99736ff8.png" width="500" alt="BOLO"></img></a>
<a href="https://i.gyazo.com/78258256b01b67ce32d8bbe602b20866.png" target="_blank"><img src="https://i.gyazo.com/78258256b01b67ce32d8bbe602b20866.png" width="500" alt="Tickets and Notes"></img></a>
<a href="https://i.gyazo.com/e4b5ce6ca98c82fcc85739443037922e.png" target="_blank"><img src="https://i.gyazo.com/e4b5ce6ca98c82fcc85739443037922e.png" width="500" alt="Dispatch Main"></img></a>
<a href="https://i.gyazo.com/b9578ed701735082606ca0fe140317f2.png" target="_blank"><img src="https://i.gyazo.com/b9578ed701735082606ca0fe140317f2.png" width="500" alt="Dispatch BOLO"></img></a>
<a href="https://i.gyazo.com/8a17a134ee59189a2cfff4eb0357490d.png"><img src="https://i.gyazo.com/8a17a134ee59189a2cfff4eb0357490d.png" width="500" alt="Civilian"></img></a>
<a href="https://i.gyazo.com/84d5a31c36cf3de3524f1ce1836f2d56.png"><img src="https://i.gyazo.com/84d5a31c36cf3de3524f1ce1836f2d56.png" width="500" alt="Police"></img></a>
<a href="https://i.gyazo.com/4f157544ededf220b90ae23a99736ff8.png"><img src="https://i.gyazo.com/4f157544ededf220b90ae23a99736ff8.png" width="500" alt="BOLO"></img></a>
<a href="https://i.gyazo.com/78258256b01b67ce32d8bbe602b20866.png"><img src="https://i.gyazo.com/78258256b01b67ce32d8bbe602b20866.png" width="500" alt="Tickets and Notes"></img></a>
<a href="https://i.gyazo.com/e4b5ce6ca98c82fcc85739443037922e.png"><img src="https://i.gyazo.com/e4b5ce6ca98c82fcc85739443037922e.png" width="500" alt="Dispatch Main"></img></a>
<a href="https://i.gyazo.com/b9578ed701735082606ca0fe140317f2.png"><img src="https://i.gyazo.com/b9578ed701735082606ca0fe140317f2.png" width="500" alt="Dispatch BOLO"></img></a>

## Commands

### ---Civilian Commands---

* /newname {first} {last} - Set yourself as a new PED name in the system (clears all other information including wanted and vehicle)
* /warrant - Toggles a warrant on your current PED
* /citations {num} - Set the amount of citations that your PED has gotten in the past

### ---Vehicle Commands---

* /newveh {plate} - Set's a plate as a new plate in the system
* /stolen - Toggles a stolen status of the vehicle
* /registered - Toggles the registration status of the vehicle
* /insured - Toggles the insurance status of the vehicle
* `/civ` - Opens the civilian NUI menu In-game

### ---Police Commands---

* /2729 {first} {last} - Check the name of a person in the system
* /28 {plate} - Check the plate of a vehicle in the system
* /note {first} {last} {note} - Adds a note to a civilian
* /ticket {first} {last} {amount} {reason} - Adds a ticket to a civilian
* /notes {first} {last} - Displays all of the notes of a civilian
* /bolos - Displays all current BOLOs
* /bolo {desc} - Adds a new BOLO to the database
* /ticket {first} {last} {amount} {reason} - Tickets a Civilian
* /tickets {first} {last} - Displays all tickets for a Civilian
* `/leo` - Opens the officer NUI menu In-game (Can be used to for other emergency personel)

## In the works

1. Arrest ability - `/arrest {first} {last}` arrests a ped and show it in the system

2. Warrant Types - `/warrant {type}` have different types of bench warrants and also a toggle for outstanding

3. Database - A civilian database for storing civilians

4. Permissions - Permissions for Civilians, Cops, and Disptachers
66 changes: 66 additions & 0 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,60 @@ Dispatchsystems API is sort of new. Because it is in the works there is no set A

These events will be in the context of C# and **NOT** lua.

```csharp
// Eventname: dispatchsystem:dsreset
void TriggerServerEvent("dispatchsystem:dsreset", String invokerHandle);
```
***
```csharp
// Eventname: dispatchsystem:911init
void TriggerServerEvent("dispatchsystem:911init", String invokerHandle);
```
***
```csharp
// Eventname: dispatchsystem:911msg
void TriggerServerEvent("dispatchsystem:911msg", String invokerHandle, String message);
```
***
```csharp
// Eventname: dispatchsystem:911end
void TriggerServerEvent("dispatchsystem:911end", String invokerHandle);
```
***
```csharp
// Eventname: dispatchsystem:initOfficer
void TriggerServerEvent("dispatchsystem:initOfficer", String invokerHandle, String callsign);
```
***
```csharp
// Eventname: dispatchsystem:onDuty
void TriggerServerEvent("dispatchsystem:onDuty", String invokerHandle);
```
***
```csharp
// Eventname: dispatchsystem:offDuty
void TriggerServerEvent("dispatchsystem:offDuty", String invokerHandle);
```
***
```csharp
// Eventname: dispatchsystem:busy
void TriggerServerEvent("dispatchsystem:busy", String invokerHandle);
```
***
```csharp
// Eventname: dispatchsystem:displayStatus
void TriggerServerEvent("dispatchsystem:displayStatus", String invokerHandle);
```
***
```csharp
// Eventname: dispatchsystem:ticketCiv
Expand All @@ -31,6 +85,18 @@ void TriggerServerEvent("dispatchsystem:getCivilianVeh", String invokerHandle, S
```
***
```csharp
// Eventname: dispatchsystem:addBolo
void TriggerServerEvent("dispatchsystem:addBolo", String invokerHandle, String reason);
```
***
```csharp
// Eventname: dispatchsystem:viewBolos
void TriggerServerEvent("dispatchsystem:viewBolos", String invokerHandle);
```
***
```csharp
// Eventname: dispatchsystem:addCivNote
void TriggerServerEvent("dispatchsystem:addCivNote", String invokerHandle, String firstName, String lastName, String note);
Expand Down
70 changes: 65 additions & 5 deletions src/Client/Client.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,16 @@
</PropertyGroup>
<PropertyGroup />
<ItemGroup>
<Reference Include="Dispatch.Common">
<HintPath>..\bin\Common\Debug\Dispatch.Common.dll</HintPath>
<Reference Include="CloNET, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\CloneCommando.CloNET.0.4.2\lib\net461\CloNET.dll</HintPath>
</Reference>
<Reference Include="MaterialSkin, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\MaterialSkin.Updated.0.2.2\lib\MaterialSkin.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Configuration" />
<Reference Include="System.Core" />
<Reference Include="System.ValueTuple, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\System.ValueTuple.4.4.0\lib\net461\System.ValueTuple.dll</HintPath>
</Reference>
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
Expand All @@ -58,12 +57,24 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Windows\AddExistingAssignment.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Windows\AddExistingAssignment.Designer.cs">
<DependentUpon>AddExistingAssignment.cs</DependentUpon>
</Compile>
<Compile Include="Windows\AddRemoveView.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Windows\AddRemoveView.Designer.cs">
<DependentUpon>AddRemoveView.cs</DependentUpon>
</Compile>
<Compile Include="Windows\AssignmentsView.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Windows\AssignmentsView.Designer.cs">
<DependentUpon>AssignmentsView.cs</DependentUpon>
</Compile>
<Compile Include="Windows\BoloView.cs">
<SubType>Form</SubType>
</Compile>
Expand Down Expand Up @@ -92,9 +103,39 @@
<Compile Include="ISyncable.cs" />
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Windows\Emergency\Accept911.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Windows\Emergency\Accept911.Designer.cs">
<DependentUpon>Accept911.cs</DependentUpon>
</Compile>
<Compile Include="Windows\Emergency\Message911.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Windows\Emergency\Message911.Designer.cs">
<DependentUpon>Message911.cs</DependentUpon>
</Compile>
<Compile Include="Windows\MultiOfficerView.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Windows\MultiOfficerView.Designer.cs">
<DependentUpon>MultiOfficerView.cs</DependentUpon>
</Compile>
<Compile Include="Windows\OfficerView.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Windows\OfficerView.Designer.cs">
<DependentUpon>OfficerView.cs</DependentUpon>
</Compile>
<EmbeddedResource Include="Windows\AddExistingAssignment.resx">
<DependentUpon>AddExistingAssignment.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Windows\AddRemoveView.resx">
<DependentUpon>AddRemoveView.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Windows\AssignmentsView.resx">
<DependentUpon>AssignmentsView.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Windows\BoloView.resx">
<DependentUpon>BoloView.cs</DependentUpon>
</EmbeddedResource>
Expand All @@ -117,6 +158,18 @@
<DependentUpon>Resources.resx</DependentUpon>
<DesignTime>True</DesignTime>
</Compile>
<EmbeddedResource Include="Windows\Emergency\Accept911.resx">
<DependentUpon>Accept911.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Windows\Emergency\Message911.resx">
<DependentUpon>Message911.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Windows\MultiOfficerView.resx">
<DependentUpon>MultiOfficerView.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Windows\OfficerView.resx">
<DependentUpon>OfficerView.cs</DependentUpon>
</EmbeddedResource>
<None Include="packages.config" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
Expand All @@ -139,5 +192,12 @@
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Common\Common.csproj">
<Project>{98d8a98f-63af-4cc1-9455-07390b2438a4}</Project>
<Name>Common</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
Loading

0 comments on commit a47a6cc

Please sign in to comment.