Jump to content

coding the the tweak.xm


Go to solution Solved by Diversityy,

32 posts in this topic

Recommended Posts

  • Replies 31
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted

need more information

This was my tweak but it didn't work

%hook Weapon

 

- (void)setAmmo:(int)fp8 {

%orig(fp8);

fp8=999999;

}

 

- (void)setClip:(int)fp8 {

%orig(fp8);

fp8=999999;

}

 

- (BOOL)isDualWield {

return true;

}

%end

@@DiDA

Posted


%hook Weapon

- (void)setAmmo:(int)ammo

{

%orig(999999);

}

 

-(void)setClip:(int)clip

{

%orig(999999);

}

 

- (BOOL)setDualWield

{

return TRUE;

}

 

Try that.

Posted

no spaces

 

%hook Weapon
- (void)setAmmo:(int)ammo 
{
%orig(999999);
}

-(void)setClip:(int)clip
{
%orig(999999);
}

- (BOOL)setDualWield
{
return TRUE;
}

Try that.

 


what about the %end

Posted (edited)

%hook Weapon

- (void)setAmmo:(int)ammo

{

%orig(999999);

}

 

-(void)setClip:(int)clip

{

%orig(999999);

}

 

- (BOOL)setDualWield

{

return TRUE;

}

%end

Updated by Salman1700

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
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines