Jump to content
  • 0

Convert this function to lua GG


richardsonloko
 Share

Question

I have this function in c++ how to converte .lua

 

I need change parameter ammo = 9999

 

void (*old_bullets)(void *instance, int ammo);
void bullets(void *instance, int ammo) {
    if (instance != NULL && hack1) 
    
    {
        ammo = 9999;
    }
    
    return old_bullets(instance, ammo);
}


HOOK_LIB("libFileB.so", "0x123456", bullets, old_bullets);

 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.