Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (let i = 0; i < 4; i++)
- {
- mp.gui.chat.push("" + i);
- 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)
- {
- // mp.gui.chat.push("1");
- if(!CourierBoxCarried )
- {
- //mp.gui.chat.push("2");
- Player.taskPlayAnim("anim@heists@box_carry@", "idle", 8.0, 1.0, -1, 1 | 16 | 32, 1.0, false, false, false);
- CourierObj[Player.id][i].attachTo(Player.handle, Player.getBoneIndex(28422), 0, -0.031, 0.00, 0, 0, 0, true, false, false, false, 0, true);
- CourierBoxCarried = true;
- CourierObBox[i] = true;
- CourierObjMark[i].destroy();
- }
- }
- }
Add Comment
Please, Sign In to add comment