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
03-21-2018, 09:04 AM #2
kiwi_modz
I defeated!
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.


Pretty sure this only works in pregame.
03-21-2018, 05:49 PM #3
NmfV2
Do a barrel roll!
Originally posted by modz View Post
Pretty sure this only works in pregame.


yeah it does, useful to have none the less
07-06-2018, 02:09 PM #4
oKvex-
Haxor!
how do use in RTM Tool ?
I know its for SPRX But If Someone wants to use In RTM Tool How ?
09-23-2018, 11:06 AM #5
Originally posted by oKvex
how do use in RTM Tool ?
I know its for SPRX But If Someone wants to use In RTM Tool How ?


Im going too see if i can work it out now :P
09-24-2018, 03:39 AM #6
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.


doesnt work in c#
09-24-2018, 10:38 AM #7
Originally posted by kayleb View Post
doesnt work in c#


Iv tried lol Happy someone has it working lol
09-24-2018, 12:23 PM #8
Originally posted by SoloHoster View Post
Iv tried lol Happy someone has it working lol


yeah they probably codded it in ppc
09-24-2018, 02:07 PM #9
Originally posted by kayleb View Post
yeah they probably codded it in ppc


Nah he just hooked it or some shit lol
09-24-2018, 04:09 PM #10
Originally posted by kayleb View Post
doesnt work in c#


it should work as the func is handled the same way through rpc & c++
Last edited by MrSynful ; 09-24-2018 at 04:11 PM.

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo