Skip to content
This repository has been archived by the owner on Feb 27, 2023. It is now read-only.

Commit

Permalink
Update to API 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Cannonb4ll committed Jun 25, 2020
1 parent ff36ec3 commit b9362fb
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 11 deletions.
2 changes: 2 additions & 0 deletions VehicleCollisions/Folder.DotSettings.user
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<s:Boolean x:Key="/Default/AddReferences/RecentPaths/=C_003A_005CUsers_005CDennis_005CDesktop_005Cfivepd_0020libs_005CCitizenFX_002ECore_002Edll/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/AddReferences/RecentPaths/=C_003A_005CUsers_005CDennis_005CDesktop_005Cfivepd_0020libs_005CFivePD_002Enet_002Edll/@EntryIndexedValue">True</s:Boolean>
<s:String x:Key="/Default/Environment/AssemblyExplorer/XmlDocument/@EntryValue">&lt;AssemblyExplorer&gt;&#xD;
&lt;Assembly Path="C:\Users\Dennis\Desktop\fivepd libs\CalloutAPI.net.dll" /&gt;&#xD;
&lt;/AssemblyExplorer&gt;</s:String></wpf:ResourceDictionary>
12 changes: 6 additions & 6 deletions VehicleCollisions/VehicleCollisions.cs
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
using System;
using System.Threading.Tasks;
using CalloutAPI;
using CitizenFX.Core;
using FivePD.API;
using VehicleCollisions.Scenes;
using VehicleCollisions.Utils;
using static CitizenFX.Core.Native.API;
using static CitizenFX.Core.UI.Screen;
using Utilities = VehicleCollisions.Utils.Utilities;

namespace VehicleCollisions
{
[CalloutProperties("Vehicle Collisions", "Dennis Smink", "1.0.0", Probability.Medium)]
[CalloutProperties("Vehicle Collisions", "Dennis Smink", "1.0.0")]
public class VehicleCollisions : Callout
{
private readonly IScene _scene;
Expand All @@ -24,18 +24,18 @@ public VehicleCollisions()
_scene = new SceneFactory(Utilities.Between(1, 10)).GetScene(this);
//scene = new SceneFactory(2).GetScene(this);

InitBase(new Vector3(_scene.Coordinates.X, _scene.Coordinates.Y, _scene.Coordinates.Z));
InitInfo(new Vector3(_scene.Coordinates.X, _scene.Coordinates.Y, _scene.Coordinates.Z));

ShortName = _scene.Title;
CalloutDescription = _scene.Description;
ResponseCode = _scene.ResponseCode;
StartDistance = _scene.StartDistance;
}

public override async Task Init()
public override async Task OnAccept()
{
// When user accepts, continue
OnAccept();
InitBlip();

// Spawn the on-scene cop car (if any)
await SpawnOnSceneCopCars();
Expand Down
6 changes: 3 additions & 3 deletions VehicleCollisions/VehicleCollisions.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="CalloutAPI.net, Version=0.6.4.0, Culture=neutral, PublicKeyToken=null">
<HintPath>..\..\..\Desktop\fivepd libs\CalloutAPI.net.dll</HintPath>
</Reference>
<Reference Include="CitizenFX.Core, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
<HintPath>..\..\..\Desktop\fivepd libs\CitizenFX.Core.dll</HintPath>
</Reference>
<Reference Include="FivePD.net, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null">
<HintPath>..\..\..\Desktop\fivepd libs\FivePD.net.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Data" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
375a38557920ea8e67b6cc7bc995f84ffd0f6a6c
bff92150bbfa29ca23fefc80c4e57a698ac27d63
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
C:\Users\Dennis\RiderProjects\VehicleCollisions\VehicleCollisions\bin\Debug\VehicleIncidents.net.dll
C:\Users\Dennis\RiderProjects\VehicleCollisions\VehicleCollisions\bin\Debug\VehicleIncidents.net.pdb
C:\Users\Dennis\RiderProjects\VehicleCollisions\VehicleCollisions\bin\Debug\CalloutAPI.net.dll
C:\Users\Dennis\RiderProjects\VehicleCollisions\VehicleCollisions\bin\Debug\CitizenFX.Core.dll
C:\Users\Dennis\RiderProjects\VehicleCollisions\VehicleCollisions\obj\Debug\VehicleCollisions.csprojAssemblyReference.cache
C:\Users\Dennis\RiderProjects\VehicleCollisions\VehicleCollisions\obj\Debug\VehicleCollisions.csproj.CoreCompileInputs.cache
C:\Users\Dennis\RiderProjects\VehicleCollisions\VehicleCollisions\obj\Debug\VehicleCollisions.csproj.CopyComplete
C:\Users\Dennis\RiderProjects\VehicleCollisions\VehicleCollisions\obj\Debug\VehicleIncidents.net.dll
C:\Users\Dennis\RiderProjects\VehicleCollisions\VehicleCollisions\obj\Debug\VehicleIncidents.net.pdb
C:\Users\Dennis\RiderProjects\VehicleCollisions\VehicleCollisions\bin\Debug\FivePD.net.dll
Binary file not shown.
Binary file modified VehicleCollisions/obj/Debug/VehicleIncidents.net.dll
Binary file not shown.
Binary file modified VehicleCollisions/obj/Debug/VehicleIncidents.net.pdb
Binary file not shown.

0 comments on commit b9362fb

Please sign in to comment.