Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- ################################################
- # #
- # Script Criado Por #
- # FACEBOOK.COM/AIRNEWSCR #
- # EDIT:HIQUEC #
- # #
- # #
- ################################################
- --]]
- local AgenciaDeEmpregos = createMarker ( -2033.092, -117.435, 1035.172 -1, "cylinder", 1.2, 20, 70, 230, 95 )
- setElementInterior ( AgenciaDeEmpregos, 3 )
- setElementDimension ( AgenciaDeEmpregos, 0 )
- --local Entrada = createMarker ( 1153.971, -1772.248, 16.594 +0.7, "arrow", 1.2, 20, 70, 230, 95 )
- local Entrada = createMarker(1153.971, -1772.248, 16.594 -1 ,"cylinder",1.1,0,108,255, 0)
- AgenPickup = createPickup ( 1153.971, -1772.248, 16.594, 3, 1210, 1)
- local EntradaBlip = createBlipAttachedTo ( Entrada, 23 )
- setBlipVisibleDistance ( EntradaBlip, 150 )
- local Saida = createMarker ( -2029.7189941406,-119.60523223877,1035.171875 +0.7, "arrow", 1.2, 20, 70, 230, 95 )
- setElementInterior ( Saida, 3 )
- setElementDimension ( Saida, 0 )
- --
- local EntregadorDeJornal = createBlip( 783.25146, -1327.65601, 13.54688, 0 )
- setElementVisibleTo ( EntregadorDeJornal, root, false )
- local EntregadorDeJornalMarker = createMarker ( 783.25146, -1327.65601, 13.54688 -1, "cylinder", 1.2, 20, 70, 230, 0 )
- local PizzaBoy = createBlip( 2101.46094, -1801.56970, 13.55469, 0 )
- setElementVisibleTo ( PizzaBoy, root, false )
- local PizzaBoyMarker = createMarker ( 2101.46094, -1801.56970, 13.55469 -1, "cylinder", 1.2, 20, 70, 230, 0 )
- local MotoristaDeUber = createBlip( 1219.864, -1812.912, 16.594, 0 )
- setElementVisibleTo ( MotoristaDeUber, root, false )
- local MotoristaDeUberMarker = createMarker ( 1219.864, -1812.912, 16.594 -1, "cylinder", 1.2, 20, 70, 230, 0 )
- local EntregadorDeMalote = createBlip( 1219.506, -1812.57, 16.594, 0 )
- setElementVisibleTo ( EntregadorDeMalote, root, false )
- local EntregadorDeMaloteMarker = createMarker ( 1219.506, -1812.57, 16.594 -1, "cylinder", 1.2, 20, 70, 230, 0 )
- --local Mecanico = createBlip( 196.94911, -232.34215, 1.55537, 0 )
- --setElementVisibleTo ( Mecanico, root, false )
- --local MecanicoMarker = createMarker ( 196.94911, -232.34215, 1.55537 -1, "cylinder", 1.2, 20, 70, 230, 0 )
- local Petroleiro = createBlip( 283.75128, 1432.13159, 10.79398, 0 )
- setElementVisibleTo ( Petroleiro, root, false )
- local PetroleiroMarker = createMarker ( 283.75128, 1432.13159, 10.79398 -1, "cylinder", 1.2, 20, 70, 230, 0 )
- local MotoristaDeOnibus = createBlip( 2843.39136, 1293.83838, 11.39063, 0 )
- setElementVisibleTo ( MotoristaDeOnibus, root, false )
- local MotoristaDeOnibusMarker = createMarker ( 2843.39136, 1293.83838, 11.39063 -1, "cylinder", 1.2, 20, 70, 230, 0 )
- local PilotoDeAviao = createBlip( 1919.63525, -2641.47046, 13.54688, 0 )
- setElementVisibleTo ( PilotoDeAviao, root, false )
- local PilotoDeAviaoMarker = createMarker ( 1919.63525, -2641.47046, 13.54688 -1, "cylinder", 1.2, 20, 70, 230, 0 )
- --
- function emarker(marker,md)
- if (md) then
- if marker == Entrada then
- setTimer ( setElementInterior, 400, 1, source, 3 )
- setTimer ( setElementDimension, 400, 1, source, 0 )
- setTimer ( setElementPosition, 400, 1, source, -2027.1860351563,-105.67038726807,1035.171875 )
- setTimer ( setElementRotation, 900, 1, source, 0, 0, 90 )
- fadeCamera ( source, false, 0.1, 0, 0, 0 )
- setTimer ( fadeCamera, 900, 1, source , true, 0.5 )
- setTimer ( setCameraTarget, 900, 1, source )
- end
- if marker == Saida then
- setTimer ( setElementInterior, 400, 1, source, 0 )
- setTimer ( setElementDimension, 400, 1, source, 0 )
- setTimer ( setElementPosition, 400, 1, source, 1153.7983398438,-1767.9436035156,16.59375 )
- setTimer ( setElementRotation, 900, 1, source, 0, 0, 0 )
- fadeCamera ( source, false, 0.1, 0, 0, 0 )
- setTimer ( fadeCamera, 900, 1, source , true, 0.5 )
- setTimer ( setCameraTarget, 900, 1, source )
- end
- if marker == AgenciaDeEmpregos then
- if isPedInVehicle ( source ) then return end
- triggerClientEvent ( source, "AirNew>AbrirAgencia", root)
- end
- if marker == EntregadorDeJornalMarker or marker == PizzaBoyMarker or marker == MotoristaDeUberMarker or marker == PetroleiroMarker or marker == MotoristaDeOnibusMarker or marker == PilotoDeAviaoMarker or marker == EntregadorDeMaloteMarker then
- TudoInvisivel ()
- end
- end
- end
- addEventHandler("onPlayerMarkerHit",getRootElement(),emarker)
- function lmarker(marker,md)
- if (md) then
- if marker == AgenciaDeEmpregos then
- triggerClientEvent ( source, "AirNew>FecharAgencia", root)
- end
- end
- end
- addEventHandler("onPlayerMarkerLeave",getRootElement(),lmarker)--]]
- function TudoInvisivel ()
- setElementVisibleTo ( EntregadorDeJornal, source, false )
- setElementVisibleTo ( EntregadorDeMalote, source, false )
- setElementVisibleTo ( PizzaBoy, source, false )
- setElementVisibleTo ( MotoristaDeUber, source, false )
- setElementVisibleTo ( Petroleiro, source, false )
- setElementVisibleTo ( MotoristaDeOnibus, source, false )
- setElementVisibleTo ( PilotoDeAviao, source, false )
- --setElementVisibleTo ( Mecanico, source, false )
- end
- function EntregadorDeJornalAirNew ()
- local Level = getElementData ( source, "Level" ) or 0
- if Level >= 0 then
- TudoInvisivel ()
- setElementVisibleTo ( EntregadorDeJornal, source, true )
- setElementData ( source, "AirNew>Encaminhamento", "Entregador de Jornal" )
- outputChatBox ( "Você foi aceito no Emprego de Entregador de Jornal", source, 255, 255, 255, true )
- outputChatBox ( "Para Iniciar os Serviços siga o Checkpoint Vermelho em seu Radar", source, 255, 255, 255, true )
- setElementData ( source, "Emprego", false )
- end
- end
- addEvent( "Encaminhar>EntregadorDeJornal", true )
- addEventHandler( "Encaminhar>EntregadorDeJornal", getRootElement(), EntregadorDeJornalAirNew )
- function EntregadorDeMaloteAirNew ()
- local Level = getElementData ( source, "Level" ) or 0
- if Level >= 0 then
- TudoInvisivel ()
- setElementVisibleTo ( EntregadorDeMalote, source, true )
- setElementData ( source, "AirNew>Encaminhamento", "Entregador de Malote" )
- outputChatBox ( "Você foi aceito no Emprego de transportado de malote", source, 255, 255, 255, true )
- outputChatBox ( "Para Iniciar os Serviços siga o Checkpoint Vermelho em seu Radar", source, 255, 255, 255, true )
- setElementData ( source, "Emprego", false )
- else
- outputChatBox ( "Você precisa ter level 30 para trabalhar!", source, 255, 255, 255, true )
- end
- end
- addEvent( "Encaminhar>EntregadorDeMalote", true )
- addEventHandler( "Encaminhar>EntregadorDeMalote", getRootElement(), EntregadorDeMaloteAirNew )
- function PizzaBoyAirNew ()
- local Level = getElementData ( source, "Level" ) or 05
- if Level >= 05 then
- TudoInvisivel ()
- setElementVisibleTo ( PizzaBoy, source, true )
- setElementData ( source, "AirNew>Encaminhamento", "PizzaBoy" )
- outputChatBox ( "Você foi aceito no Emprego de PizzaBoy", source, 255, 255, 255, true )
- outputChatBox ( "Para Iniciar os Serviços siga o Checkpoint Vermelho em seu Radar", source, 255, 255, 255, true )
- setElementData ( source, "Emprego", false )
- else
- outputChatBox ( "Você precisa ter level 05 para trabalhar!", source, 255, 255, 255, true )
- end
- end
- addEvent( "Encaminhar>PizzaBoy", true )
- addEventHandler( "Encaminhar>PizzaBoy", getRootElement(), PizzaBoyAirNew )
- function MotoristaDeUberAirNew ()
- local Level = getElementData ( source, "Level" ) or 10
- if Level >= 10 then
- TudoInvisivel ()
- setElementVisibleTo ( MotoristaDeUber, source, true )
- setElementData ( source, "AirNew>Encaminhamento", "Motorista de Uber" )
- outputChatBox ( "Você foi aceito no Emprego de Motorista de Uber", source, 255, 255, 255, true )
- outputChatBox ( "Para Iniciar os Serviços siga o Checkpoint Vermelho em seu Radar", source, 255, 255, 255, true )
- setElementData ( source, "Emprego", false )
- else
- outputChatBox ( "Você precisa ter level 10 para trabalhar!", source, 255, 255, 255, true )
- end
- end
- addEvent( "Encaminhar>MotoristaDeUber", true )
- addEventHandler( "Encaminhar>MotoristaDeUber", getRootElement(), MotoristaDeUberAirNew )
- --function MecanicoAirNew ()
- --local Level = getElementData ( source, "Level" ) or 0
- --if Level >= 0 then
- --TudoInvisivel ()
- --setElementVisibleTo ( Mecanico, source, true )
- --setElementData ( source, "AirNew>Encaminhamento", "Mecanico" )
- --outputChatBox ( "Você foi aceito no Emprego de Mecânico", source, 255, 255, 255, true )
- --outputChatBox ( "Para Iniciar os Serviços siga o Checkpoint Vermelho em seu Radar", source, 255, 255, 255, true )
- --setElementData ( source, "Emprego", false )
- --end
- --end
- --addEvent( "Encaminhar>Mecanico", true )
- --addEventHandler( "Encaminhar>Mecanico", getRootElement(), MecanicoAirNew )
- function PetroleiroAirNew ()
- local Level = getElementData ( source, "Level" ) or 15
- if Level >= 15 then
- TudoInvisivel ()
- setElementVisibleTo ( Petroleiro, source, true )
- setElementData ( source, "AirNew>Encaminhamento", "Petroleiro" )
- outputChatBox ( "Você foi aceito no Emprego de Petroleiro", source, 255, 255, 255, true )
- outputChatBox ( "Para Iniciar os Serviços siga o Checkpoint Vermelho em seu Radar", source, 255, 255, 255, true )
- setElementData ( source, "Emprego", false )
- else
- outputChatBox ( "Você precisa ter level 15 para trabalhar!", source, 255, 255, 255, true )
- end
- end
- addEvent( "Encaminhar>Petroleiro", true )
- addEventHandler( "Encaminhar>Petroleiro", getRootElement(), PetroleiroAirNew )
- function MotoristaDeOnibusAirNew ()
- local Level = getElementData ( source, "Level" ) or 20
- if Level >= 20 then
- TudoInvisivel ()
- setElementVisibleTo ( MotoristaDeOnibus, source, true )
- setElementData ( source, "AirNew>Encaminhamento", "Motorista de Onibus" )
- outputChatBox ( "Você foi aceito no Emprego de Motorista de Ônibus", source, 255, 255, 255, true )
- outputChatBox ( "Para Iniciar os Serviços siga o Checkpoint Vermelho em seu Radar", source, 255, 255, 255, true )
- setElementData ( source, "Emprego", false )
- else
- outputChatBox ( "Você precisa ter level 20 para trabalhar!", source, 255, 255, 255, true )
- end
- end
- addEvent( "Encaminhar>MotoristaDeOnibus", true )
- addEventHandler( "Encaminhar>MotoristaDeOnibus", getRootElement(), MotoristaDeOnibusAirNew )
- function PilotoDeAviaoAirNew ()
- local Level = getElementData ( source, "Level" ) or 25
- if Level >= 25 then
- TudoInvisivel ()
- setElementVisibleTo ( PilotoDeAviao, source, true )
- setElementData ( source, "AirNew>Encaminhamento", "Piloto de Aviao" )
- outputChatBox ( "Você foi aceito no Emprego de Piloto de Avião", source, 255, 255, 255, true )
- outputChatBox ( "Para Iniciar os Serviços siga o Checkpoint Vermelho em seu Radar", source, 255, 255, 255, true )
- setElementData ( source, "Emprego", false )
- else
- outputChatBox ( "Você precisa ter level 25 para trabalhar!", source, 255, 255, 255, true )
- end
- end
- addEvent( "Encaminhar>PilotoDeAviao", true )
- addEventHandler( "Encaminhar>PilotoDeAviao", getRootElement(), PilotoDeAviaoAirNew )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement