More bug fixes (#1557)

Fixed nearby features affecting players and local ped.
Removed faulty vehicle kick protection from can_apply

Fixes #1540
This commit is contained in:
DayibBaba
2023-06-30 13:38:44 +02:00
committed by GitHub
parent f6969d88c5
commit c35c7fdff9
5 changed files with 7 additions and 7 deletions

View File

@ -28,7 +28,8 @@ namespace big
components::button<ImVec2(110, 0), ImVec4(0.76078f, 0.f, 0.03529f, 1.f)>("Kill Enemies", [] {
for (auto peds : entity::get_entities(false, true))
{
ped::kill_ped_by_relation(peds, 4 || 5);
if (!PED::IS_PED_A_PLAYER(peds))
ped::kill_ped_by_relation(peds, 4 || 5);
}
});