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

Help! How to Hook

BrokeBroky

Platinian
// RVA: 0x2EA9B64 Offset: 0x2EA9B64 VA: 0x2EA9B64
public static void SetGameMetric(GameEvents.GameMetric metric, float value) { }

how to hook this?
 
Thanks Sir, but that's a video on how to install menu mod. Sorry sir, do you understand what I want to ask? I want to know how to hook void SetGameMetric(GameEvents.GameMetric metric, float value).
All I know about hooking is that you can hook it into a Mod Menu. Therefore, I have sent you a video in which you can go to the “Hooking” timestamp.
 
Try something like
void (*old_SetGameMetric(void *instance ,void * metric, float value)
void SetGameMetric(void *instance ,void* metric, float value){
If(instance != nullptr){

// Access metric fields etc...

}}