Please enable / Bitte aktiviere JavaScript!
Veuillez activer / Por favor activa el Javascript![ ? ]

Detect Other Mod Menus by the Menu Events

MisterModzZ

Administrator
Staff member
Joined
Nov 18, 2018
Messages
14
Likes
2
#1
C++:
//checks for a specific menu event
//name: The name of the menu
//eventId: Dummy event of the menu
// RUN THIS IN A LOOP IF YOU WANT TO GET NOTIFY ABOUT A OTHER MOD MENU USER:
void notifyMenuUser(std::string name, uint64_t eventId) {
    uint64_t args[10];
    if (SCRIPT::GET_EVENT_DATA(1, 0, args, 10)) {
        if (args[0] == eventId) {
            ostringstream msg;
            msg << "~r~" << PLAYER::GET_PLAYER_NAME(args[1]) << " is using " << name << " Menu!";
            notifyMap(msg.str());
        }
    }
}
//sends your own dummy event
//eventId: your dummy event
// RUN THIS IN A ALWAYS ACTIVE LOOP:
void sendDummyEvent(uint64_t eventId) {
    for (int i = 0; i < 33; i++) {
        if (ENTITY::DOES_ENTITY_EXIST(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(i)) && i != PLAYER::PLAYER_ID()) {
            unsigned int Bit = (1 << i);
            uint64_t args[4] = { eventId, PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(i), 0, 0 };
            Hooking::trigger_script_event(1, args, 4, Bit);
        }
    }
}

// RUN THIS IN A ALWAYS ACTIVE LOOP:
notifyMenuUser("Explosive", 7263263744);
notifyMenuUser("Volcano VIP"", 7263263749);
notifyMenuUser("Mister//ModzZ PC", 72632637999);
notifyMenuUser("Cobra", 74658346534);
notifyMenuUser("X-Force", 73858735564);
notifyMenuUser("Position", 7263263764);
notifyMenuUser("Menace", 7263268573);
notifyMenuUser("DarkCheats", 8364956390);
notifyMenuUser("Terror", 7263438154);
notifyMenuUser("Hypno", 74658346534);
notifyMenuUser("Sodium", 7263437100);

#Tags (Ignore This Pls)
Gtav Online Mod Menu Detection System
Gtav detect other mod menus
gtav mod menu events
Gtav Modding events
gtav Mod Menu detecter
gtav Mod menu name finder
 

MisterModzZ

Administrator
Staff member
Joined
Nov 18, 2018
Messages
14
Likes
2
#2
If you add this to your Mod Menu then Please Post your Menu ID and then i will ad it to the Post. ( you can just use a Random Number whitch is not already in use by another Menu.