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

Commit a47a6cc

Browse files
authored
Merge pull request #5 from blockba5her/v2.0
v2.0 pull request
2 parents 049461c + 8031121 commit a47a6cc

111 files changed

Lines changed: 4994 additions & 17818 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 14 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,43 @@
11
# Dispatch Systems
22

3-
> 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.
3+
[![Discord](https://discordapp.com/api/guilds/358081805850640384/widget.png)](https://discord.gg/ZcTayce)
4+
5+
> 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.
46
57
## Uses
68

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

1519
## Pictures
1620

1721
> Click to view bigger image
1822
19-
<a href="https://i.gyazo.com/8a17a134ee59189a2cfff4eb0357490d.png" target="_blank"><img src="https://i.gyazo.com/8a17a134ee59189a2cfff4eb0357490d.png" width="500" alt="Civilian"></img></a>
20-
<a href="https://i.gyazo.com/84d5a31c36cf3de3524f1ce1836f2d56.png" target="_blank"><img src="https://i.gyazo.com/84d5a31c36cf3de3524f1ce1836f2d56.png" width="500" alt="Police"></img></a>
21-
<a href="https://i.gyazo.com/4f157544ededf220b90ae23a99736ff8.png" target="_blank"><img src="https://i.gyazo.com/4f157544ededf220b90ae23a99736ff8.png" width="500" alt="BOLO"></img></a>
22-
<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>
23-
<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>
24-
<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>
23+
<a href="https://i.gyazo.com/8a17a134ee59189a2cfff4eb0357490d.png"><img src="https://i.gyazo.com/8a17a134ee59189a2cfff4eb0357490d.png" width="500" alt="Civilian"></img></a>
24+
<a href="https://i.gyazo.com/84d5a31c36cf3de3524f1ce1836f2d56.png"><img src="https://i.gyazo.com/84d5a31c36cf3de3524f1ce1836f2d56.png" width="500" alt="Police"></img></a>
25+
<a href="https://i.gyazo.com/4f157544ededf220b90ae23a99736ff8.png"><img src="https://i.gyazo.com/4f157544ededf220b90ae23a99736ff8.png" width="500" alt="BOLO"></img></a>
26+
<a href="https://i.gyazo.com/78258256b01b67ce32d8bbe602b20866.png"><img src="https://i.gyazo.com/78258256b01b67ce32d8bbe602b20866.png" width="500" alt="Tickets and Notes"></img></a>
27+
<a href="https://i.gyazo.com/e4b5ce6ca98c82fcc85739443037922e.png"><img src="https://i.gyazo.com/e4b5ce6ca98c82fcc85739443037922e.png" width="500" alt="Dispatch Main"></img></a>
28+
<a href="https://i.gyazo.com/b9578ed701735082606ca0fe140317f2.png"><img src="https://i.gyazo.com/b9578ed701735082606ca0fe140317f2.png" width="500" alt="Dispatch BOLO"></img></a>
2529

2630
## Commands
2731

2832
### ---Civilian Commands---
2933

30-
* /newname {first} {last} - Set yourself as a new PED name in the system (clears all other information including wanted and vehicle)
31-
* /warrant - Toggles a warrant on your current PED
32-
* /citations {num} - Set the amount of citations that your PED has gotten in the past
33-
34-
### ---Vehicle Commands---
35-
36-
* /newveh {plate} - Set's a plate as a new plate in the system
37-
* /stolen - Toggles a stolen status of the vehicle
38-
* /registered - Toggles the registration status of the vehicle
39-
* /insured - Toggles the insurance status of the vehicle
34+
* `/civ` - Opens the civilian NUI menu In-game
4035

4136
### ---Police Commands---
4237

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

5340
## In the works
5441

5542
1. Arrest ability - `/arrest {first} {last}` arrests a ped and show it in the system
56-
5743
2. Warrant Types - `/warrant {type}` have different types of bench warrants and also a toggle for outstanding
58-
59-
3. Database - A civilian database for storing civilians
60-
61-
4. Permissions - Permissions for Civilians, Cops, and Disptachers

docs/api.md

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,60 @@ Dispatchsystems API is sort of new. Because it is in the works there is no set A
66

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

9+
```csharp
10+
// Eventname: dispatchsystem:dsreset
11+
12+
void TriggerServerEvent("dispatchsystem:dsreset", String invokerHandle);
13+
```
14+
***
15+
```csharp
16+
// Eventname: dispatchsystem:911init
17+
18+
void TriggerServerEvent("dispatchsystem:911init", String invokerHandle);
19+
```
20+
***
21+
```csharp
22+
// Eventname: dispatchsystem:911msg
23+
24+
void TriggerServerEvent("dispatchsystem:911msg", String invokerHandle, String message);
25+
```
26+
***
27+
```csharp
28+
// Eventname: dispatchsystem:911end
29+
30+
void TriggerServerEvent("dispatchsystem:911end", String invokerHandle);
31+
```
32+
***
33+
```csharp
34+
// Eventname: dispatchsystem:initOfficer
35+
36+
void TriggerServerEvent("dispatchsystem:initOfficer", String invokerHandle, String callsign);
37+
```
38+
***
39+
```csharp
40+
// Eventname: dispatchsystem:onDuty
41+
42+
void TriggerServerEvent("dispatchsystem:onDuty", String invokerHandle);
43+
```
44+
***
45+
```csharp
46+
// Eventname: dispatchsystem:offDuty
47+
48+
void TriggerServerEvent("dispatchsystem:offDuty", String invokerHandle);
49+
```
50+
***
51+
```csharp
52+
// Eventname: dispatchsystem:busy
53+
54+
void TriggerServerEvent("dispatchsystem:busy", String invokerHandle);
55+
```
56+
***
57+
```csharp
58+
// Eventname: dispatchsystem:displayStatus
59+
60+
void TriggerServerEvent("dispatchsystem:displayStatus", String invokerHandle);
61+
```
62+
***
963
```csharp
1064
// Eventname: dispatchsystem:ticketCiv
1165
@@ -31,6 +85,18 @@ void TriggerServerEvent("dispatchsystem:getCivilianVeh", String invokerHandle, S
3185
```
3286
***
3387
```csharp
88+
// Eventname: dispatchsystem:addBolo
89+
90+
void TriggerServerEvent("dispatchsystem:addBolo", String invokerHandle, String reason);
91+
```
92+
***
93+
```csharp
94+
// Eventname: dispatchsystem:viewBolos
95+
96+
void TriggerServerEvent("dispatchsystem:viewBolos", String invokerHandle);
97+
```
98+
***
99+
```csharp
34100
// Eventname: dispatchsystem:addCivNote
35101
36102
void TriggerServerEvent("dispatchsystem:addCivNote", String invokerHandle, String firstName, String lastName, String note);

src/Client/Client.csproj

Lines changed: 65 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,16 @@
3636
</PropertyGroup>
3737
<PropertyGroup />
3838
<ItemGroup>
39-
<Reference Include="Dispatch.Common">
40-
<HintPath>..\bin\Common\Debug\Dispatch.Common.dll</HintPath>
39+
<Reference Include="CloNET, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
40+
<SpecificVersion>False</SpecificVersion>
41+
<HintPath>..\packages\CloneCommando.CloNET.0.4.2\lib\net461\CloNET.dll</HintPath>
4142
</Reference>
4243
<Reference Include="MaterialSkin, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
4344
<HintPath>..\packages\MaterialSkin.Updated.0.2.2\lib\MaterialSkin.dll</HintPath>
4445
</Reference>
4546
<Reference Include="System" />
47+
<Reference Include="System.Configuration" />
4648
<Reference Include="System.Core" />
47-
<Reference Include="System.ValueTuple, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
48-
<HintPath>..\packages\System.ValueTuple.4.4.0\lib\net461\System.ValueTuple.dll</HintPath>
49-
</Reference>
5049
<Reference Include="System.Xml.Linq" />
5150
<Reference Include="System.Data.DataSetExtensions" />
5251
<Reference Include="Microsoft.CSharp" />
@@ -58,12 +57,24 @@
5857
<Reference Include="System.Xml" />
5958
</ItemGroup>
6059
<ItemGroup>
60+
<Compile Include="Windows\AddExistingAssignment.cs">
61+
<SubType>Form</SubType>
62+
</Compile>
63+
<Compile Include="Windows\AddExistingAssignment.Designer.cs">
64+
<DependentUpon>AddExistingAssignment.cs</DependentUpon>
65+
</Compile>
6166
<Compile Include="Windows\AddRemoveView.cs">
6267
<SubType>Form</SubType>
6368
</Compile>
6469
<Compile Include="Windows\AddRemoveView.Designer.cs">
6570
<DependentUpon>AddRemoveView.cs</DependentUpon>
6671
</Compile>
72+
<Compile Include="Windows\AssignmentsView.cs">
73+
<SubType>Form</SubType>
74+
</Compile>
75+
<Compile Include="Windows\AssignmentsView.Designer.cs">
76+
<DependentUpon>AssignmentsView.cs</DependentUpon>
77+
</Compile>
6778
<Compile Include="Windows\BoloView.cs">
6879
<SubType>Form</SubType>
6980
</Compile>
@@ -92,9 +103,39 @@
92103
<Compile Include="ISyncable.cs" />
93104
<Compile Include="Program.cs" />
94105
<Compile Include="Properties\AssemblyInfo.cs" />
106+
<Compile Include="Windows\Emergency\Accept911.cs">
107+
<SubType>Form</SubType>
108+
</Compile>
109+
<Compile Include="Windows\Emergency\Accept911.Designer.cs">
110+
<DependentUpon>Accept911.cs</DependentUpon>
111+
</Compile>
112+
<Compile Include="Windows\Emergency\Message911.cs">
113+
<SubType>Form</SubType>
114+
</Compile>
115+
<Compile Include="Windows\Emergency\Message911.Designer.cs">
116+
<DependentUpon>Message911.cs</DependentUpon>
117+
</Compile>
118+
<Compile Include="Windows\MultiOfficerView.cs">
119+
<SubType>Form</SubType>
120+
</Compile>
121+
<Compile Include="Windows\MultiOfficerView.Designer.cs">
122+
<DependentUpon>MultiOfficerView.cs</DependentUpon>
123+
</Compile>
124+
<Compile Include="Windows\OfficerView.cs">
125+
<SubType>Form</SubType>
126+
</Compile>
127+
<Compile Include="Windows\OfficerView.Designer.cs">
128+
<DependentUpon>OfficerView.cs</DependentUpon>
129+
</Compile>
130+
<EmbeddedResource Include="Windows\AddExistingAssignment.resx">
131+
<DependentUpon>AddExistingAssignment.cs</DependentUpon>
132+
</EmbeddedResource>
95133
<EmbeddedResource Include="Windows\AddRemoveView.resx">
96134
<DependentUpon>AddRemoveView.cs</DependentUpon>
97135
</EmbeddedResource>
136+
<EmbeddedResource Include="Windows\AssignmentsView.resx">
137+
<DependentUpon>AssignmentsView.cs</DependentUpon>
138+
</EmbeddedResource>
98139
<EmbeddedResource Include="Windows\BoloView.resx">
99140
<DependentUpon>BoloView.cs</DependentUpon>
100141
</EmbeddedResource>
@@ -117,6 +158,18 @@
117158
<DependentUpon>Resources.resx</DependentUpon>
118159
<DesignTime>True</DesignTime>
119160
</Compile>
161+
<EmbeddedResource Include="Windows\Emergency\Accept911.resx">
162+
<DependentUpon>Accept911.cs</DependentUpon>
163+
</EmbeddedResource>
164+
<EmbeddedResource Include="Windows\Emergency\Message911.resx">
165+
<DependentUpon>Message911.cs</DependentUpon>
166+
</EmbeddedResource>
167+
<EmbeddedResource Include="Windows\MultiOfficerView.resx">
168+
<DependentUpon>MultiOfficerView.cs</DependentUpon>
169+
</EmbeddedResource>
170+
<EmbeddedResource Include="Windows\OfficerView.resx">
171+
<DependentUpon>OfficerView.cs</DependentUpon>
172+
</EmbeddedResource>
120173
<None Include="packages.config" />
121174
<None Include="Properties\Settings.settings">
122175
<Generator>SettingsSingleFileGenerator</Generator>
@@ -139,5 +192,12 @@
139192
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
140193
</Content>
141194
</ItemGroup>
195+
<ItemGroup>
196+
<ProjectReference Include="..\Common\Common.csproj">
197+
<Project>{98d8a98f-63af-4cc1-9455-07390b2438a4}</Project>
198+
<Name>Common</Name>
199+
</ProjectReference>
200+
</ItemGroup>
201+
<ItemGroup />
142202
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
143203
</Project>

0 commit comments

Comments
 (0)