Solved Help bind update to hook

Status
Not open for further replies.

zxcDelix

Platinian
I need to send a number in string format from a slider that has a data type Int, I made the following code, but the stickers are not sent, most likely I need to link the update to this sending, but I don’t quite understand how to do this, I will be glad for any help.

C++:
monoString* (*old_SendSticker)(void *instance);
monoString* SendSticker(void *instance) {
    if (instance != NULL) {
        if (sendmoji) {
            std::string emojiString = std::to_string(emoji);
            return CreateMonoStringType(emojiString.c_str());
        }
    }
    old_SendSticker(instance);
}

// RVA: 0x590244 Offset: 0x590244 VA: 0x590244
private void LateUpdate() {}

// RVA: 0x5911BC Offset: 0x5911BC VA: 0x5911BC
public void OnSticker(string stickerName) { }
 
Thread will be set to "solved" and closed.
When you're not happy with that just send me a message and i will re-open the thread for you.

Thanks.
 
Status
Not open for further replies.
Back
Top Bottom