Advertisement
Djangoantonio3

Untitled

Oct 2nd, 2019
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.99 KB | None | 0 0
  1. --[[
  2.  
  3.  
  4.  
  5. ################################################
  6. # #
  7. # Script Criado Por #
  8. # FACEBOOK.COM/AIRNEWSCR #
  9. # EDIT:HIQUEC #
  10. # #
  11. # #
  12. ################################################
  13.  
  14.  
  15.  
  16. --]]
  17.  
  18. local AgenciaDeEmpregos = createMarker ( -2033.092, -117.435, 1035.172 -1, "cylinder", 1.2, 20, 70, 230, 95 )
  19. setElementInterior ( AgenciaDeEmpregos, 3 )
  20. setElementDimension ( AgenciaDeEmpregos, 0 )
  21.  
  22. --local Entrada = createMarker ( 1153.971, -1772.248, 16.594 +0.7, "arrow", 1.2, 20, 70, 230, 95 )
  23. local Entrada = createMarker(1153.971, -1772.248, 16.594 -1 ,"cylinder",1.1,0,108,255, 0)
  24. AgenPickup = createPickup ( 1153.971, -1772.248, 16.594, 3, 1210, 1)
  25. local EntradaBlip = createBlipAttachedTo ( Entrada, 23 )
  26. setBlipVisibleDistance ( EntradaBlip, 150 )
  27.  
  28. local Saida = createMarker ( -2029.7189941406,-119.60523223877,1035.171875 +0.7, "arrow", 1.2, 20, 70, 230, 95 )
  29. setElementInterior ( Saida, 3 )
  30. setElementDimension ( Saida, 0 )
  31.  
  32. --
  33.  
  34. local EntregadorDeJornal = createBlip( 783.25146, -1327.65601, 13.54688, 0 )
  35. setElementVisibleTo ( EntregadorDeJornal, root, false )
  36. local EntregadorDeJornalMarker = createMarker ( 783.25146, -1327.65601, 13.54688 -1, "cylinder", 1.2, 20, 70, 230, 0 )
  37.  
  38. local PizzaBoy = createBlip( 2101.46094, -1801.56970, 13.55469, 0 )
  39. setElementVisibleTo ( PizzaBoy, root, false )
  40. local PizzaBoyMarker = createMarker ( 2101.46094, -1801.56970, 13.55469 -1, "cylinder", 1.2, 20, 70, 230, 0 )
  41.  
  42. local MotoristaDeUber = createBlip( 1219.864, -1812.912, 16.594, 0 )
  43. setElementVisibleTo ( MotoristaDeUber, root, false )
  44. local MotoristaDeUberMarker = createMarker ( 1219.864, -1812.912, 16.594 -1, "cylinder", 1.2, 20, 70, 230, 0 )
  45.  
  46. local EntregadorDeMalote = createBlip( 1219.506, -1812.57, 16.594, 0 )
  47. setElementVisibleTo ( EntregadorDeMalote, root, false )
  48. local EntregadorDeMaloteMarker = createMarker ( 1219.506, -1812.57, 16.594 -1, "cylinder", 1.2, 20, 70, 230, 0 )
  49.  
  50. --local Mecanico = createBlip( 196.94911, -232.34215, 1.55537, 0 )
  51. --setElementVisibleTo ( Mecanico, root, false )
  52. --local MecanicoMarker = createMarker ( 196.94911, -232.34215, 1.55537 -1, "cylinder", 1.2, 20, 70, 230, 0 )
  53.  
  54. local Petroleiro = createBlip( 283.75128, 1432.13159, 10.79398, 0 )
  55. setElementVisibleTo ( Petroleiro, root, false )
  56. local PetroleiroMarker = createMarker ( 283.75128, 1432.13159, 10.79398 -1, "cylinder", 1.2, 20, 70, 230, 0 )
  57.  
  58. local MotoristaDeOnibus = createBlip( 2843.39136, 1293.83838, 11.39063, 0 )
  59. setElementVisibleTo ( MotoristaDeOnibus, root, false )
  60. local MotoristaDeOnibusMarker = createMarker ( 2843.39136, 1293.83838, 11.39063 -1, "cylinder", 1.2, 20, 70, 230, 0 )
  61.  
  62. local PilotoDeAviao = createBlip( 1919.63525, -2641.47046, 13.54688, 0 )
  63. setElementVisibleTo ( PilotoDeAviao, root, false )
  64. local PilotoDeAviaoMarker = createMarker ( 1919.63525, -2641.47046, 13.54688 -1, "cylinder", 1.2, 20, 70, 230, 0 )
  65.  
  66. --
  67.  
  68. function emarker(marker,md)
  69. if (md) then
  70. if marker == Entrada then
  71. setTimer ( setElementInterior, 400, 1, source, 3 )
  72. setTimer ( setElementDimension, 400, 1, source, 0 )
  73. setTimer ( setElementPosition, 400, 1, source, -2027.1860351563,-105.67038726807,1035.171875 )
  74. setTimer ( setElementRotation, 900, 1, source, 0, 0, 90 )
  75. fadeCamera ( source, false, 0.1, 0, 0, 0 )
  76. setTimer ( fadeCamera, 900, 1, source , true, 0.5 )
  77. setTimer ( setCameraTarget, 900, 1, source )
  78. end
  79. if marker == Saida then
  80. setTimer ( setElementInterior, 400, 1, source, 0 )
  81. setTimer ( setElementDimension, 400, 1, source, 0 )
  82. setTimer ( setElementPosition, 400, 1, source, 1153.7983398438,-1767.9436035156,16.59375 )
  83. setTimer ( setElementRotation, 900, 1, source, 0, 0, 0 )
  84. fadeCamera ( source, false, 0.1, 0, 0, 0 )
  85. setTimer ( fadeCamera, 900, 1, source , true, 0.5 )
  86. setTimer ( setCameraTarget, 900, 1, source )
  87. end
  88. if marker == AgenciaDeEmpregos then
  89. if isPedInVehicle ( source ) then return end
  90. triggerClientEvent ( source, "AirNew>AbrirAgencia", root)
  91. end
  92. if marker == EntregadorDeJornalMarker or marker == PizzaBoyMarker or marker == MotoristaDeUberMarker or marker == PetroleiroMarker or marker == MotoristaDeOnibusMarker or marker == PilotoDeAviaoMarker or marker == EntregadorDeMaloteMarker then
  93. TudoInvisivel ()
  94. end
  95. end
  96. end
  97. addEventHandler("onPlayerMarkerHit",getRootElement(),emarker)
  98.  
  99. function lmarker(marker,md)
  100. if (md) then
  101. if marker == AgenciaDeEmpregos then
  102. triggerClientEvent ( source, "AirNew>FecharAgencia", root)
  103. end
  104. end
  105. end
  106. addEventHandler("onPlayerMarkerLeave",getRootElement(),lmarker)--]]
  107.  
  108. function TudoInvisivel ()
  109. setElementVisibleTo ( EntregadorDeJornal, source, false )
  110. setElementVisibleTo ( EntregadorDeMalote, source, false )
  111. setElementVisibleTo ( PizzaBoy, source, false )
  112. setElementVisibleTo ( MotoristaDeUber, source, false )
  113. setElementVisibleTo ( Petroleiro, source, false )
  114. setElementVisibleTo ( MotoristaDeOnibus, source, false )
  115. setElementVisibleTo ( PilotoDeAviao, source, false )
  116. --setElementVisibleTo ( Mecanico, source, false )
  117. end
  118.  
  119. function EntregadorDeJornalAirNew ()
  120. local Level = getElementData ( source, "Level" ) or 0
  121. if Level >= 0 then
  122. TudoInvisivel ()
  123. setElementVisibleTo ( EntregadorDeJornal, source, true )
  124. setElementData ( source, "AirNew>Encaminhamento", "Entregador de Jornal" )
  125. outputChatBox ( "Você foi aceito no Emprego de Entregador de Jornal", source, 255, 255, 255, true )
  126. outputChatBox ( "Para Iniciar os Serviços siga o Checkpoint Vermelho em seu Radar", source, 255, 255, 255, true )
  127. setElementData ( source, "Emprego", false )
  128. end
  129. end
  130. addEvent( "Encaminhar>EntregadorDeJornal", true )
  131. addEventHandler( "Encaminhar>EntregadorDeJornal", getRootElement(), EntregadorDeJornalAirNew )
  132.  
  133. function EntregadorDeMaloteAirNew ()
  134. local Level = getElementData ( source, "Level" ) or 0
  135. if Level >= 0 then
  136. TudoInvisivel ()
  137. setElementVisibleTo ( EntregadorDeMalote, source, true )
  138. setElementData ( source, "AirNew>Encaminhamento", "Entregador de Malote" )
  139. outputChatBox ( "Você foi aceito no Emprego de transportado de malote", source, 255, 255, 255, true )
  140. outputChatBox ( "Para Iniciar os Serviços siga o Checkpoint Vermelho em seu Radar", source, 255, 255, 255, true )
  141. setElementData ( source, "Emprego", false )
  142. else
  143. outputChatBox ( "Você precisa ter level 30 para trabalhar!", source, 255, 255, 255, true )
  144. end
  145. end
  146. addEvent( "Encaminhar>EntregadorDeMalote", true )
  147. addEventHandler( "Encaminhar>EntregadorDeMalote", getRootElement(), EntregadorDeMaloteAirNew )
  148.  
  149. function PizzaBoyAirNew ()
  150. local Level = getElementData ( source, "Level" ) or 05
  151. if Level >= 05 then
  152. TudoInvisivel ()
  153. setElementVisibleTo ( PizzaBoy, source, true )
  154. setElementData ( source, "AirNew>Encaminhamento", "PizzaBoy" )
  155. outputChatBox ( "Você foi aceito no Emprego de PizzaBoy", source, 255, 255, 255, true )
  156. outputChatBox ( "Para Iniciar os Serviços siga o Checkpoint Vermelho em seu Radar", source, 255, 255, 255, true )
  157. setElementData ( source, "Emprego", false )
  158. else
  159. outputChatBox ( "Você precisa ter level 05 para trabalhar!", source, 255, 255, 255, true )
  160. end
  161. end
  162. addEvent( "Encaminhar>PizzaBoy", true )
  163. addEventHandler( "Encaminhar>PizzaBoy", getRootElement(), PizzaBoyAirNew )
  164.  
  165. function MotoristaDeUberAirNew ()
  166. local Level = getElementData ( source, "Level" ) or 10
  167. if Level >= 10 then
  168. TudoInvisivel ()
  169. setElementVisibleTo ( MotoristaDeUber, source, true )
  170. setElementData ( source, "AirNew>Encaminhamento", "Motorista de Uber" )
  171. outputChatBox ( "Você foi aceito no Emprego de Motorista de Uber", source, 255, 255, 255, true )
  172. outputChatBox ( "Para Iniciar os Serviços siga o Checkpoint Vermelho em seu Radar", source, 255, 255, 255, true )
  173. setElementData ( source, "Emprego", false )
  174. else
  175. outputChatBox ( "Você precisa ter level 10 para trabalhar!", source, 255, 255, 255, true )
  176. end
  177. end
  178. addEvent( "Encaminhar>MotoristaDeUber", true )
  179. addEventHandler( "Encaminhar>MotoristaDeUber", getRootElement(), MotoristaDeUberAirNew )
  180.  
  181. --function MecanicoAirNew ()
  182. --local Level = getElementData ( source, "Level" ) or 0
  183. --if Level >= 0 then
  184. --TudoInvisivel ()
  185. --setElementVisibleTo ( Mecanico, source, true )
  186. --setElementData ( source, "AirNew>Encaminhamento", "Mecanico" )
  187. --outputChatBox ( "Você foi aceito no Emprego de Mecânico", source, 255, 255, 255, true )
  188. --outputChatBox ( "Para Iniciar os Serviços siga o Checkpoint Vermelho em seu Radar", source, 255, 255, 255, true )
  189. --setElementData ( source, "Emprego", false )
  190. --end
  191. --end
  192. --addEvent( "Encaminhar>Mecanico", true )
  193. --addEventHandler( "Encaminhar>Mecanico", getRootElement(), MecanicoAirNew )
  194.  
  195. function PetroleiroAirNew ()
  196. local Level = getElementData ( source, "Level" ) or 15
  197. if Level >= 15 then
  198. TudoInvisivel ()
  199. setElementVisibleTo ( Petroleiro, source, true )
  200. setElementData ( source, "AirNew>Encaminhamento", "Petroleiro" )
  201. outputChatBox ( "Você foi aceito no Emprego de Petroleiro", source, 255, 255, 255, true )
  202. outputChatBox ( "Para Iniciar os Serviços siga o Checkpoint Vermelho em seu Radar", source, 255, 255, 255, true )
  203. setElementData ( source, "Emprego", false )
  204. else
  205. outputChatBox ( "Você precisa ter level 15 para trabalhar!", source, 255, 255, 255, true )
  206. end
  207. end
  208. addEvent( "Encaminhar>Petroleiro", true )
  209. addEventHandler( "Encaminhar>Petroleiro", getRootElement(), PetroleiroAirNew )
  210.  
  211. function MotoristaDeOnibusAirNew ()
  212. local Level = getElementData ( source, "Level" ) or 20
  213. if Level >= 20 then
  214. TudoInvisivel ()
  215. setElementVisibleTo ( MotoristaDeOnibus, source, true )
  216. setElementData ( source, "AirNew>Encaminhamento", "Motorista de Onibus" )
  217. outputChatBox ( "Você foi aceito no Emprego de Motorista de Ônibus", source, 255, 255, 255, true )
  218. outputChatBox ( "Para Iniciar os Serviços siga o Checkpoint Vermelho em seu Radar", source, 255, 255, 255, true )
  219. setElementData ( source, "Emprego", false )
  220. else
  221. outputChatBox ( "Você precisa ter level 20 para trabalhar!", source, 255, 255, 255, true )
  222. end
  223. end
  224. addEvent( "Encaminhar>MotoristaDeOnibus", true )
  225. addEventHandler( "Encaminhar>MotoristaDeOnibus", getRootElement(), MotoristaDeOnibusAirNew )
  226.  
  227. function PilotoDeAviaoAirNew ()
  228. local Level = getElementData ( source, "Level" ) or 25
  229. if Level >= 25 then
  230. TudoInvisivel ()
  231. setElementVisibleTo ( PilotoDeAviao, source, true )
  232. setElementData ( source, "AirNew>Encaminhamento", "Piloto de Aviao" )
  233. outputChatBox ( "Você foi aceito no Emprego de Piloto de Avião", source, 255, 255, 255, true )
  234. outputChatBox ( "Para Iniciar os Serviços siga o Checkpoint Vermelho em seu Radar", source, 255, 255, 255, true )
  235. setElementData ( source, "Emprego", false )
  236. else
  237. outputChatBox ( "Você precisa ter level 25 para trabalhar!", source, 255, 255, 255, true )
  238. end
  239. end
  240. addEvent( "Encaminhar>PilotoDeAviao", true )
  241. addEventHandler( "Encaminhar>PilotoDeAviao", getRootElement(), PilotoDeAviaoAirNew )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement