mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-06-17 23:07:26 +08:00
feat(Features): Added disable phone feature
This commit is contained in:
parent
5bd71c2c55
commit
cdb6be86c3
@ -29,6 +29,7 @@ namespace big
|
|||||||
void run_tick();
|
void run_tick();
|
||||||
void script_func();
|
void script_func();
|
||||||
|
|
||||||
|
void disable_phone();
|
||||||
void god_mode();
|
void god_mode();
|
||||||
void join_message(Player player);
|
void join_message(Player player);
|
||||||
void never_wanted();
|
void never_wanted();
|
||||||
|
11
BigBaseV2/src/features/looped/disable_phone.cpp
Normal file
11
BigBaseV2/src/features/looped/disable_phone.cpp
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
#include "features.hpp"
|
||||||
|
#include "script_global.hpp"
|
||||||
|
|
||||||
|
namespace big
|
||||||
|
{
|
||||||
|
void features::disable_phone()
|
||||||
|
{
|
||||||
|
if (g_settings.options["disable_phone"].get<bool>())
|
||||||
|
*script_global(19664).as<int*>() = 1;
|
||||||
|
}
|
||||||
|
}
|
@ -13,6 +13,7 @@ namespace big
|
|||||||
nlohmann::json options;
|
nlohmann::json options;
|
||||||
nlohmann::json default_options =
|
nlohmann::json default_options =
|
||||||
R"({
|
R"({
|
||||||
|
"disable_phone": false,
|
||||||
"disable_chat_censoring": false,
|
"disable_chat_censoring": false,
|
||||||
"god_mode": false,
|
"god_mode": false,
|
||||||
"join_message": false,
|
"join_message": false,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user