- Country
- Russia
void (*old_PlayerNetwork)(...);
void PlayerNetwork(void* instance) {
if (instance != NULL) {
void* WeaponSet = *(void* *)((uint64_t)instance + 0x68);
if (WeaponSet != NULL) {
if (button) {
*(float *)((uint64_t)WeaponSet + 0xOFFSET) = float_value;
}
}
}
return (*old_PlayerNetwork)(instance);
}
I have such code. I need a code that opens a script, inside which it opens 1 more, and only then edits the value.
I tried to make the code myself, following the example, but for some reason unknown to me, when the function was activated, the game crashed.
void PlayerNetwork(void* instance) {
if (instance != NULL) {
void* WeaponSet = *(void* *)((uint64_t)instance + 0x68);
if (WeaponSet != NULL) {
if (button) {
*(float *)((uint64_t)WeaponSet + 0xOFFSET) = float_value;
}
}
}
return (*old_PlayerNetwork)(instance);
}
I have such code. I need a code that opens a script, inside which it opens 1 more, and only then edits the value.
I tried to make the code myself, following the example, but for some reason unknown to me, when the function was activated, the game crashed.