Post: Popup Message Function
03-21-2018, 04:32 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); I seen somewhere that someone released a way to do the BO2 popup message and I knew there was a function for it so instead of writing to memory I found the actual function.

So here is how to use the actual function in c++ & c#

C++
    
#define TOC (0xD67E9Cool Man (aka Tustin)

struct opd_s {
int addr, tocc;
uint32_t sub;
uint32_t toc;
};

opd_s UI_OpenToastPopup_t = { 0x003779EC, TOC };
void*(*UI_OpenToastPopup)(int localClientNum, const char *toastPopupIconName, const char *toastPopupTitle, const char *toastPopupDesc, int toastPopupDuration) = (void*(*)(int, const char*, const char*, const char*, int))&UI_OpenToastPopup_t;
UI_OpenToastPopup(0, "Shader/Icon Here", "Title Here", "Desc Here", 1000);


C#
    
public void UI_OpenToastPopup(int localClientNum, string toastPopupIconName, string toastPopupTitle, string toastPopupDesc, int toastPopupDuration) {
Call(0x003779EC, localClientNum, toastPopupIconName, toastPopupTitle, toastPopupDesc, toastPopupDuration);
}


Here's what it looks like
You must login or register to view this content.

The following user thanked MrSynful for this useful post:

Bigmoneyhustlin
09-24-2018, 04:10 PM #11
Originally posted by SoloHoster View Post
Nah he just hooked it or some shit lol


there is no hooking involved. clearly you do not know how c++ & c# rpc function calling works.
09-25-2018, 02:09 AM #12
Originally posted by MrSynful View Post
there is no hooking involved. clearly you do not know how c++ & c# rpc function calling works.


Well I couldn't get it to work would you be able to make a source with it working and post it if possible thanks ��
10-19-2018, 06:27 AM #13
DevOps
Gobble
Originally posted by MrSynful View Post
I seen somewhere that someone released a way to do the BO2 popup message and I knew there was a function for it so instead of writing to memory I found the actual function.

So here is how to use the actual function in c++ & c#

C++
    
#define TOC (0xD67E9Cool Man (aka Tustin)

struct opd_s {
int addr, tocc;
uint32_t sub;
uint32_t toc;
};

opd_s UI_OpenToastPopup_t = { 0x003779EC, TOC };
void*(*UI_OpenToastPopup)(int localClientNum, const char *toastPopupIconName, const char *toastPopupTitle, const char *toastPopupDesc, int toastPopupDuration) = (void*(*)(int, const char*, const char*, const char*, int))&UI_OpenToastPopup_t;
UI_OpenToastPopup(0, "Shader/Icon Here", "Title Here", "Desc Here", 1000);


C#
    
public void UI_OpenToastPopup(int localClientNum, string toastPopupIconName, string toastPopupTitle, string toastPopupDesc, int toastPopupDuration) {
Call(0x003779EC, localClientNum, toastPopupIconName, toastPopupTitle, toastPopupDesc, toastPopupDuration);
}


Here's what it looks like
You must login or register to view this content.


i posted this in a reply to someone on another forums haha

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo