Skip to content
Guest Big Announcement

Hooking player Problem :/

Featured Replies

My player wont move its like its frozen i tried multiple methods to fix this but none of those methods i tried worked, the method i hooked is working it dose spawn items but then player won’t move, im sure you guys will know something 

 

void (*Player_QuickSpawnItem) (void *player, int item) = (void (*) (void *, int))getRealOffset(0x100F2929C);



bool shouldSpawn = true;



void (*old_Player_Update) (void *player);

void Player_Update (void *player){

int item = [[switches getValueFromSwitch:@"Spawn Item:"]intValue];



  if([switches isSwitchOn:@"Spawn Item:"])

{

 if(shouldSpawn)

  {

    Player_QuickSpawnItem(player, item); 

     shouldSpawn = false;

  }

 }

   else 

   {

      shouldSpawn = true;

    }

  

 old_Player_Update(player);

}

void setup() {

//ADD YOUR HACKS UNDER THIS

//Public void Update(int i);//RVA:0x100F68320 Offset: 0xF68320

HOOK(0x100F68320, Player_Update, old_Player_Update);

  [switches addTextfieldSwitch:@"Spawn Item:"

              description:@"Put the item ID!"

                inputBorderColor:[UIColor colorWithRed:0.31 green:0.31 blue:0.78 alpha:1.0]];

 

 

Updated by Red16

Archived

This topic is now archived and is closed to further replies.

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.