mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-06-19 07:28:04 +08:00
17 lines
569 B
C++
17 lines
569 B
C++
![]() |
#include "backend/looped_command.hpp"
|
||
|
#include "core/scr_globals.hpp"
|
||
|
|
||
|
namespace big
|
||
|
{
|
||
|
class interaction_menu_freedom : looped_command
|
||
|
{
|
||
|
using looped_command::looped_command;
|
||
|
|
||
|
virtual void on_tick() override
|
||
|
{
|
||
|
*scr_globals::interaction_menu_access.as<int*>() = 1; // sets itself to the original value every frame while you're in the interaction menu, so no need for a reset
|
||
|
}
|
||
|
};
|
||
|
|
||
|
interaction_menu_freedom g_interaction_menu_freedom("interactionmenufreedom", "INTERACTION_MENU_FREEDOM", "INTERACTION_MENU_FREEDOM_DESC", g.self.interaction_menu_freedom);
|
||
|
}
|