feat(Toxic): Kick from vehicle (#165)

This commit is contained in:
Mystro 2022-05-04 11:02:29 +03:00 committed by GitHub
parent 7e344028db
commit 93f38b20fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 2 deletions

View File

@ -58,6 +58,13 @@ namespace big::toxic
MISC::SHOOT_SINGLE_BULLET_BETWEEN_COORDS(origin.x, origin.y, origin.z, destination.x, destination.y, destination.z, 1, 0, RAGE_JOAAT("WEAPON_STUNGUN"), PLAYER::PLAYER_PED_ID(), false, true, 1);
}
}
inline void kick_from_vehicle(const Player player)
{
const Ped target = PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(player);
TASK::CLEAR_PED_TASKS_IMMEDIATELY(target);
}
inline void clear_wanted_player(Player target)
{
@ -70,4 +77,4 @@ namespace big::toxic
g_pointers->m_trigger_script_event(1, args, arg_count, 1 << target);
}
}
}

View File

@ -121,7 +121,11 @@ namespace big
components::button("Taze", [] {
toxic::taze_player(g_player_service->get_selected()->id());
});
components::button("Kick From Vehicle", [] {
toxic::kick_from_vehicle(g_player_service->get_selected()->id());
});
}
}
}
}
}