From 1b1dd36e10f754dd3a5c56a207b06ca6b1272d2f Mon Sep 17 00:00:00 2001 From: Arthur <121949966+ShinyWasabi@users.noreply.github.com> Date: Fri, 23 Aug 2024 15:46:22 +0300 Subject: [PATCH] Fix Disable Phone --- src/backend/looped/tunables/disable_phone.cpp | 4 ++-- src/core/scr_globals.hpp | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/backend/looped/tunables/disable_phone.cpp b/src/backend/looped/tunables/disable_phone.cpp index 49fae5e8..90816bed 100644 --- a/src/backend/looped/tunables/disable_phone.cpp +++ b/src/backend/looped/tunables/disable_phone.cpp @@ -10,12 +10,12 @@ namespace big virtual void on_tick() override { - *scr_globals::transaction_overlimit.as() = TRUE; + *scr_globals::disable_phone.as() = TRUE; } virtual void on_disable() override { - *scr_globals::transaction_overlimit.as() = FALSE; + *scr_globals::disable_phone.as() = FALSE; } }; diff --git a/src/core/scr_globals.hpp b/src/core/scr_globals.hpp index 194602f1..5d43736e 100644 --- a/src/core/scr_globals.hpp +++ b/src/core/scr_globals.hpp @@ -60,8 +60,9 @@ namespace big::scr_globals static inline const script_global reset_clothing(104077); // freemode 75, &iLocal_.*, 2\); - static inline const script_global gun_van(1949748); // return -29.532f, 6435.136f, 31.162f; + + static inline const script_global disable_phone(20913); } namespace big::scr_locals