Add slipstreaming

This commit is contained in:
sardelka9515
2022-08-23 13:51:38 +08:00
parent 6e213611cc
commit 6005b2ba11
2 changed files with 3 additions and 0 deletions

View File

@ -317,6 +317,7 @@ namespace RageCoop.Client
PlayerList.Cleanup(); PlayerList.Cleanup();
LocalPlayerID=default; LocalPlayerID=default;
WorldThread.Traffic(!Settings.DisableTraffic); WorldThread.Traffic(!Settings.DisableTraffic);
Function.Call(Hash.SET_ENABLE_VEHICLE_SLIPSTREAMING, false);
} }
private static void DoQueuedActions() private static void DoQueuedActions()
{ {

View File

@ -5,6 +5,7 @@ using RageCoop.Core;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Threading; using System.Threading;
using GTA.Native;
namespace RageCoop.Client namespace RageCoop.Client
{ {
@ -76,6 +77,7 @@ namespace RageCoop.Client
Main.QueueAction(() => Main.QueueAction(() =>
{ {
WorldThread.Traffic(!Main.Settings.DisableTraffic); WorldThread.Traffic(!Main.Settings.DisableTraffic);
Function.Call(Hash.SET_ENABLE_VEHICLE_SLIPSTREAMING, true);
CoopMenu.ConnectedMenuSetting(); CoopMenu.ConnectedMenuSetting();
Main.MainChat.Init(); Main.MainChat.Init();
if (Main.Settings.Voice && !Voice.WasInitialized()) if (Main.Settings.Voice && !Voice.WasInitialized())