Skip to content
Guest Big Announcement

pls help make a tweak.xm

Featured Replies

 

how to make

 

-(BOOL)affordproduct:(id)withcurrency:(int)

 

return value (BOOL)

TRUE

argument#1(id)

pass-through

argument#2(int)

99999

Updated by DiDA

Solved by AnotherLurker

%hook ClassName

- (BOOL)affordProduct:(id)fp8 withCurrency:(int)fp12 {

         return true(fp8, 9999);

}

%end

  • Solution

@@castix
 
u can't return a value unless the value is a function with parameters :facepalm:
 

%hook ClassName
- (BOOL)affordProduct:(id)fp8 withCurrency:(int)fp12 
{
    return true;
}
%end

you don't need to modify the currency, u can just return true to always afford a product no matter what :)

 

@@tigger

Create an account or sign in to comment

Featured Content

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.