feat: BDSM crash protection & fix #668 (#680)

This commit is contained in:
Aure7138
2022-12-11 03:36:45 +08:00
committed by GitHub
parent 4a0027a569
commit 54aecb0586
6 changed files with 21 additions and 1 deletions

View File

@ -2,6 +2,7 @@
#include "natives.hpp"
#include "gta/enums.hpp"
#include "util/math.hpp"
#include "gui.hpp"
namespace big
{
@ -9,7 +10,7 @@ namespace big
{
if (g->weapons.rapid_fire)
{
if(!HUD::IS_PAUSE_MENU_ACTIVE())
if(!HUD::IS_PAUSE_MENU_ACTIVE() && !g_gui.m_opened && !PED::IS_PED_DEAD_OR_DYING(self::ped, true))
{
if (PAD::IS_DISABLED_CONTROL_PRESSED(0, (int)ControllerInputs::INPUT_ATTACK))
{