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.
// RVA: 0x590244 Offset: 0x590244 VA: 0x590244
private void LateUpdate() {}
// RVA: 0x5911BC Offset: 0x5911BC VA: 0x5911BC
public void OnSticker(string stickerName) { }
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);
}
private void LateUpdate() {}
// RVA: 0x5911BC Offset: 0x5911BC VA: 0x5911BC
public void OnSticker(string stickerName) { }