From cf8cfa81f854fc8ee1d14cc64bb72dca8d3b9301 Mon Sep 17 00:00:00 2001 From: Baloo <73783549+41Baloo@users.noreply.github.com> Date: Thu, 22 Aug 2024 07:04:19 +0000 Subject: [PATCH] Added protection against remote ped flag setting --- src/hooks/protections/received_event.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/hooks/protections/received_event.cpp b/src/hooks/protections/received_event.cpp index 1d05a709..3f767e68 100644 --- a/src/hooks/protections/received_event.cpp +++ b/src/hooks/protections/received_event.cpp @@ -27,6 +27,11 @@ namespace big static bool is_valid_weapon(rage::joaat_t hash) { + if ("WEAPON_TRANQUILIZER"_J == weaponType) + { + return true; + } + for (const auto& info : g_pointers->m_gta.m_weapon_info_manager->m_item_infos) { if (info && info->m_name == hash && info->GetClassId() == "cweaponinfo"_J)