From 28a1fcd0076a11acf6425e90e6e86eea2f8a7a40 Mon Sep 17 00:00:00 2001 From: Mathu-lmn <80094438+Mathu-lmn@users.noreply.github.com> Date: Wed, 10 Jul 2024 14:04:37 +0200 Subject: [PATCH] Update natives and project config --- vMenu/CommonFunctions.cs | 2 +- vMenu/FunctionsController.cs | 4 ++-- vMenu/menus/PlayerAppearance.cs | 2 +- vMenu/vMenuClient.csproj | 2 +- vMenuServer/vMenuServer.csproj | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/vMenu/CommonFunctions.cs b/vMenu/CommonFunctions.cs index a4e9b521..0b81b130 100644 --- a/vMenu/CommonFunctions.cs +++ b/vMenu/CommonFunctions.cs @@ -224,7 +224,7 @@ public static Vehicle GetVehicle(Player player, bool lastVehicle = false) /// public static bool IsPedPointing(int handle) { - return N_0x921ce12c489c4c41(handle); + return IsTaskMoveNetworkActive(handle); } /// diff --git a/vMenu/FunctionsController.cs b/vMenu/FunctionsController.cs index 5a220e6c..c160a8db 100644 --- a/vMenu/FunctionsController.cs +++ b/vMenu/FunctionsController.cs @@ -2240,7 +2240,7 @@ private async Task PlayerBlipsControl() // sets the blip category to 7, which makes the blips group under "Other Players:" SetBlipCategory(blip, 7); - //N_0x75a16c3da34f1245(blip, false); // unknown + // ShowHeightOnBlip(blip, false); // See if we need this or not // display on minimap and main map. SetBlipDisplay(blip, 6); @@ -2921,7 +2921,7 @@ private async Task SwitchHelmetOnce() var component = GetPedPropIndex(Game.PlayerPed.Handle, 0); // helmet index var texture = GetPedPropTextureIndex(Game.PlayerPed.Handle, 0); // texture var compHash = GetHashNameForProp(Game.PlayerPed.Handle, 0, component, texture); // prop combination hash - if (N_0xd40aac51e8e4c663((uint)compHash) > 0) // helmet has visor. + if (GetShopPedApparelVariantPropCount((uint)compHash) > 0) // helmet has visor. { var newHelmet = component; var newHelmetTexture = texture; diff --git a/vMenu/menus/PlayerAppearance.cs b/vMenu/menus/PlayerAppearance.cs index d1892df6..37e81e2a 100644 --- a/vMenu/menus/PlayerAppearance.cs +++ b/vMenu/menus/PlayerAppearance.cs @@ -550,7 +550,7 @@ async void SpawnPed(Menu m, MenuItem item, int index) var component = GetPedPropIndex(Game.PlayerPed.Handle, 0); // helmet index var texture = GetPedPropTextureIndex(Game.PlayerPed.Handle, 0); // texture var compHash = GetHashNameForProp(Game.PlayerPed.Handle, 0, component, texture); // prop combination hash - if (N_0xd40aac51e8e4c663((uint)compHash) > 0) // helmet has visor. + if (GetShopPedApparelVariantPropCount((uint)compHash) > 0) // helmet has visor. { if (!IsHelpMessageBeingDisplayed()) { diff --git a/vMenu/vMenuClient.csproj b/vMenu/vMenuClient.csproj index ea4b02c6..2fcce60a 100644 --- a/vMenu/vMenuClient.csproj +++ b/vMenu/vMenuClient.csproj @@ -19,7 +19,7 @@ - + runtime diff --git a/vMenuServer/vMenuServer.csproj b/vMenuServer/vMenuServer.csproj index f8db6e32..30919fc8 100644 --- a/vMenuServer/vMenuServer.csproj +++ b/vMenuServer/vMenuServer.csproj @@ -20,7 +20,7 @@ - + runtime