MilutuS

Untitled

Aug 16th, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.66 KB | None | 0 0
  1. if esp then
  2. for i = 0, 128 do
  3. if i ~= PlayerId(-1) and GetPlayerServerId(i) ~= 0 then
  4. local a5 = d(1.0)
  5. local cC = GetPlayerPed(i)
  6. local cD, cE, cF = table.unpack(GetEntityCoords(PlayerPedId(-1)))
  7. local x, y, z = table.unpack(GetEntityCoords(cC))
  8. local cG =
  9. GetPlayerName(i) ..
  10. '\nDist: ' .. math.round(GetDistanceBetweenCoords(cD, cE, cF, x, y, z, true), 1)
  11. if IsPedInAnyVehicle(cC, true) then
  12. local cH =
  13. GetLabelText(GetDisplayNameFromVehicleModel(GetEntityModel(GetVehiclePedIsUsing(cC))))
  14. cG = cG .. '\nVeh: ' .. cH
  15. end
  16. if espinfo and esp then
  17. DrawText3D(x, y, z - 1.0, cG, a5.r, a5.g, a5.b)
  18. end
  19. if espbox and esp then
  20. LineOneBegin = GetOffsetFromEntityInWorldCoords(cC, -0.3, -0.3, -0.9)
  21. LineOneEnd = GetOffsetFromEntityInWorldCoords(cC, 0.3, -0.3, -0.9)
  22. LineTwoBegin = GetOffsetFromEntityInWorldCoords(cC, 0.3, -0.3, -0.9)
  23. LineTwoEnd = GetOffsetFromEntityInWorldCoords(cC, 0.3, 0.3, -0.9)
  24. LineThreeBegin = GetOffsetFromEntityInWorldCoords(cC, 0.3, 0.3, -0.9)
  25. LineThreeEnd = GetOffsetFromEntityInWorldCoords(cC, -0.3, 0.3, -0.9)
  26. LineFourBegin = GetOffsetFromEntityInWorldCoords(cC, -0.3, -0.3, -0.9)
  27. TLineOneBegin = GetOffsetFromEntityInWorldCoords(cC, -0.3, -0.3, 0.8)
  28. TLineOneEnd = GetOffsetFromEntityInWorldCoords(cC, 0.3, -0.3, 0.8)
  29. TLineTwoBegin = GetOffsetFromEntityInWorldCoords(cC, 0.3, -0.3, 0.8)
  30. TLineTwoEnd = GetOffsetFromEntityInWorldCoords(cC, 0.3, 0.3, 0.8)
  31. TLineThreeBegin = GetOffsetFromEntityInWorldCoords(cC, 0.3, 0.3, 0.8)
  32. TLineThreeEnd = GetOffsetFromEntityInWorldCoords(cC, -0.3, 0.3, 0.8)
  33. TLineFourBegin = GetOffsetFromEntityInWorldCoords(cC, -0.3, -0.3, 0.8)
  34. ConnectorOneBegin = GetOffsetFromEntityInWorldCoords(cC, -0.3, 0.3, 0.8)
  35. ConnectorOneEnd = GetOffsetFromEntityInWorldCoords(cC, -0.3, 0.3, -0.9)
  36. ConnectorTwoBegin = GetOffsetFromEntityInWorldCoords(cC, 0.3, 0.3, 0.8)
  37. ConnectorTwoEnd = GetOffsetFromEntityInWorldCoords(cC, 0.3, 0.3, -0.9)
  38. ConnectorThreeBegin = GetOffsetFromEntityInWorldCoords(cC, -0.3, -0.3, 0.8)
  39. ConnectorThreeEnd = GetOffsetFromEntityInWorldCoords(cC, -0.3, -0.3, -0.9)
  40. ConnectorFourBegin = GetOffsetFromEntityInWorldCoords(cC, 0.3, -0.3, 0.8)
  41. ConnectorFourEnd = GetOffsetFromEntityInWorldCoords(cC, 0.3, -0.3, -0.9)
  42. DrawLine(
  43. LineOneBegin.x,
  44. LineOneBegin.y,
  45. LineOneBegin.z,
  46. LineOneEnd.x,
  47. LineOneEnd.y,
  48. LineOneEnd.z,
  49. a5.r,
  50. a5.g,
  51. a5.b,
  52. 255
  53. )
  54. DrawLine(
  55. LineTwoBegin.x,
  56. LineTwoBegin.y,
  57. LineTwoBegin.z,
  58. LineTwoEnd.x,
  59. LineTwoEnd.y,
  60. LineTwoEnd.z,
  61. a5.r,
  62. a5.g,
  63. a5.b,
  64. 255
  65. )
  66. DrawLine(
  67. LineThreeBegin.x,
  68. LineThreeBegin.y,
  69. LineThreeBegin.z,
  70. LineThreeEnd.x,
  71. LineThreeEnd.y,
  72. LineThreeEnd.z,
  73. a5.r,
  74. a5.g,
  75. a5.b,
  76. 255
  77. )
  78. DrawLine(
  79. LineThreeEnd.x,
  80. LineThreeEnd.y,
  81. LineThreeEnd.z,
  82. LineFourBegin.x,
  83. LineFourBegin.y,
  84. LineFourBegin.z,
  85. a5.r,
  86. a5.g,
  87. a5.b,
  88. 255
  89. )
  90. DrawLine(
  91. TLineOneBegin.x,
  92. TLineOneBegin.y,
  93. TLineOneBegin.z,
  94. TLineOneEnd.x,
  95. TLineOneEnd.y,
  96. TLineOneEnd.z,
  97. a5.r,
  98. a5.g,
  99. a5.b,
  100. 255
  101. )
  102. DrawLine(
  103. TLineTwoBegin.x,
  104. TLineTwoBegin.y,
  105. TLineTwoBegin.z,
  106. TLineTwoEnd.x,
  107. TLineTwoEnd.y,
  108. TLineTwoEnd.z,
  109. a5.r,
  110. a5.g,
  111. a5.b,
  112. 255
  113. )
  114. DrawLine(
  115. TLineThreeBegin.x,
  116. TLineThreeBegin.y,
  117. TLineThreeBegin.z,
  118. TLineThreeEnd.x,
  119. TLineThreeEnd.y,
  120. TLineThreeEnd.z,
  121. a5.r,
  122. a5.g,
  123. a5.b,
  124. 255
  125. )
  126. DrawLine(
  127. TLineThreeEnd.x,
  128. TLineThreeEnd.y,
  129. TLineThreeEnd.z,
  130. TLineFourBegin.x,
  131. TLineFourBegin.y,
  132. TLineFourBegin.z,
  133. a5.r,
  134. a5.g,
  135. a5.b,
  136. 255
  137. )
  138. DrawLine(
  139. ConnectorOneBegin.x,
  140. ConnectorOneBegin.y,
  141. ConnectorOneBegin.z,
  142. ConnectorOneEnd.x,
  143. ConnectorOneEnd.y,
  144. ConnectorOneEnd.z,
  145. a5.r,
  146. a5.g,
  147. a5.b,
  148. 255
  149. )
  150. DrawLine(
  151. ConnectorTwoBegin.x,
  152. ConnectorTwoBegin.y,
  153. ConnectorTwoBegin.z,
  154. ConnectorTwoEnd.x,
  155. ConnectorTwoEnd.y,
  156. ConnectorTwoEnd.z,
  157. a5.r,
  158. a5.g,
  159. a5.b,
  160. 255
  161. )
  162. DrawLine(
  163. ConnectorThreeBegin.x,
  164. ConnectorThreeBegin.y,
  165. ConnectorThreeBegin.z,
  166. ConnectorThreeEnd.x,
  167. ConnectorThreeEnd.y,
  168. ConnectorThreeEnd.z,
  169. a5.r,
  170. a5.g,
  171. a5.b,
  172. 255
  173. )
  174. DrawLine(
  175. ConnectorFourBegin.x,
  176. ConnectorFourBegin.y,
  177. ConnectorFourBegin.z,
  178. ConnectorFourEnd.x,
  179. ConnectorFourEnd.y,
  180. ConnectorFourEnd.z,
  181. a5.r,
  182. a5.g,
  183. a5.b,
  184. 255
  185. )
  186. end
  187. if esplines and esp then
  188. DrawLine(cD, cE, cF, x, y, z, a5.r, a5.g, a5.b, 255)
  189. end
  190. end
  191. end
  192. end
Advertisement
Add Comment
Please, Sign In to add comment