37 {
38 Motorbike trans = null;
39
40 if (!target)
41 {
42 return false;
43 }
44
45 if (!Class.CastTo(trans, target.GetObject()))
46 {
47 return false;
48 }
49
50 if (player.GetItemInHands() && player.GetItemInHands().IsHeavyBehaviour())
51 {
52 return false;
53 }
54
55 int componentIndex = target.GetComponentIndex();
56 int crew_index = trans.CrewPositionIndex(componentIndex);
57
58
59 if (crew_index >= 0)
60 {
61 return false;
62 }
63
64 return trans.CanPickUp();
65 }