Added protection against remote ped flag setting
This commit is contained in:
parent
4046640c1e
commit
cf8cfa81f8
@ -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)
|
||||
|
Reference in New Issue
Block a user