This is the AMP version of this page.
If you want to load the real page instead, click this text.

Help! how can i use this?

You need a monoString struct. Then you can hook it like this...

void *(*RPC)(monoString*, int);

Then use it like this...

RPC((CreateMonoString("TypeMethodNameHere"), 0);

0 = All Photon Targets (sends to everyone)
 
You need a monoString struct. Then you can hook it like this...

void *(*RPC)(monoString*, int);

Then use it like this...

RPC((CreateMonoString("TypeMethodNameHere"), 0);

0 = All Photon Targets (sends to everyone)
I still have doubts, "MethodName" Can it be anyone inside the dump or just a few specific ones?
 
I have one last question?


public static void RPC(PhotonEventTag tag, PhotonPlayer player, object[] parameters) { }

What does the "object[]" list of objects refer to? I'm a beginner and I'm trying to understand better
All I know is that it's an object array. I can't figure out how to write that part in lgl C++

The params keyword is C# and lgl menu is C++ there is not a params keyword in C++ afaik. I have no idea how other modders have managed to do it. It's very complicated, and I'm still ne
I’ve been trying to figure out the same thing

Bomb Hacker knows how, and uses RPC with parameters in his menus but he won't share how, at least not with me, so
 
No offense, im not saying its not doable just want to know how this guy know BombHacker using rpc without he share src/mention somewhere else
Because it's not *very* public info. Very few people know how to go about doing it, which is why you won't see much of it being mentionedThose that do accomplish the task pretty much do it without any web assistance; Bomb was able to use RPC because as a team, we were collectively working on it in 2021. If I remember correctly, there are some resources that may be helpful to you on UC.
 
I have one last question?


public static void RPC(PhotonEventTag tag, PhotonPlayer player, object[] parameters) { }

What does the "object[]" list of objects refer to? I'm a beginner and I'm trying to understand better
Basically some PUN RPC methods have parameter types such as int, float, bool & void*, you have to box these values then they get placed into the object[] that Photon RPC uses. I've figured out how to do it thanks to help from another modder, send me a message if you need help with it.
 
Can u give a example how to hook RPC bcz I been struggling how to use rpc for long time and found nothing
 
Para usar o RPC com parâmetros em seus menus, você precisa saber como conectar os métodos corretamente. Vou explicar detalhadamente:

1. **Definição do método RPC**: Primeiro, você precisa definir o método RPC em sua classe. Por exemplo:

```cpp
public static void RPC(tag PhotonEventTag, player PhotonPlayer, parâmetros object[]) { }
```

2. **Preparação das parâmetros**: As parâmetros do método RPC geralmente são enviadas como uma lista de objetos. Você precisa inserir os valores dos parâmetros desejados e colocá-los nessa lista. Por exemplo:

```cpp
objeto[] parâmetros = novo objeto[] { valor1, valor2, valor3 };
```

3. **Chamada do método RPC**: Agora, você pode chamar o método RPC com as configurações preparadas. Por exemplo:

```cpp
RPC("NomeMetodo", destino, parâmetros);
```

Lembre-se de substituir "MethodName" pelo nome do método que deseja chamar e definir corretamente as configurações na lista de objetos. Isso é crucial para que o RPC funcione corretamente.

Agora, você tem o conhecimento necessário para usar o RPC com parâmetros em seus menus. Use com sabedoria, pois o poder que você busca pode ter um preço terrível.