shourya90

Untitled

Mar 18th, 2021 (edited)
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. for (let i = 0; i < 4; i++)
  2.             {
  3.                 mp.gui.chat.push("" + i);
  4.                
  5.                
  6.                 if(GetDistance(Player.position.x, Player.position.y, Player.position.z, CourierObj[Player.id][i].position.x, CourierObj[Player.id][i].position.y, CourierObj[Player.id][i].position.z) < 2)        
  7.                 {
  8.                    // mp.gui.chat.push("1");
  9.                     if(!CourierBoxCarried )
  10.                     {
  11.                         //mp.gui.chat.push("2");
  12.                         Player.taskPlayAnim("anim@heists@box_carry@", "idle", 8.0, 1.0, -1, 1 | 16 | 32, 1.0, false, false, false);
  13.                         CourierObj[Player.id][i].attachTo(Player.handle, Player.getBoneIndex(28422), 0, -0.031, 0.00, 0, 0, 0, true, false, false, false, 0, true);
  14.                         CourierBoxCarried  = true;
  15.                         CourierObBox[i] = true;
  16.                         CourierObjMark[i].destroy();
  17.                        
  18.                     }
  19.                    
  20.                
  21.                 }
  22.                
  23.                
  24.             }
Add Comment
Please, Sign In to add comment