feat(DefuseEvent): Removed DefuseEvent as it trips REPORT_MYSELF
This commit is contained in:
parent
cf14e2f846
commit
bce48acb36
@ -9,23 +9,6 @@
|
|||||||
|
|
||||||
namespace big::gta_util
|
namespace big::gta_util
|
||||||
{
|
{
|
||||||
inline void defuse_event(RockstarEvent e, bool toggle)
|
|
||||||
{
|
|
||||||
int event_index = (int)e;
|
|
||||||
|
|
||||||
if (g_pointers->m_event_ptr[event_index] == nullptr) return;
|
|
||||||
|
|
||||||
char* p = (char*)g_pointers->m_event_ptr[event_index];
|
|
||||||
if (toggle)
|
|
||||||
{
|
|
||||||
if (g_pointers->m_event_restore[event_index] == 0)
|
|
||||||
g_pointers->m_event_restore[event_index] = p[0];
|
|
||||||
*p = (unsigned char)0xC3;
|
|
||||||
}
|
|
||||||
else if (g_pointers->m_event_restore[event_index] != 0)
|
|
||||||
*p = g_pointers->m_event_restore[event_index];
|
|
||||||
}
|
|
||||||
|
|
||||||
inline CPed *get_local_ped()
|
inline CPed *get_local_ped()
|
||||||
{
|
{
|
||||||
if (auto ped_factory = *g_pointers->m_ped_factory)
|
if (auto ped_factory = *g_pointers->m_ped_factory)
|
||||||
|
@ -112,9 +112,6 @@ namespace big
|
|||||||
|
|
||||||
void gui::script_init()
|
void gui::script_init()
|
||||||
{
|
{
|
||||||
gta_util::defuse_event(RockstarEvent::REPORT_CASH_SPAWN_EVENT, true);
|
|
||||||
gta_util::defuse_event(RockstarEvent::REPORT_MYSELF_EVENT, true);
|
|
||||||
|
|
||||||
notify::display_help_text("Press INSERT on your keyboard to open Yim's Mod Menu.");
|
notify::display_help_text("Press INSERT on your keyboard to open Yim's Mod Menu.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user