Added protection against remote ped flag setting

This commit is contained in:
Baloo 2024-08-22 07:04:19 +00:00
parent 4046640c1e
commit cf8cfa81f8

View File

@ -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)