Jump to content

Car teleport


Recommended Posts

Posted

Hi i have a problem when i go into the marker i got Du bist nicht bei den Los Aztecas can somebody help me?

baseteleporterz = createMarker ( -649.082031, 2118.7558, 40.0499, "cylinder", 5.0, 255, 0, 0) 
  
function teleporta5 (thePlayer) 
local fac = getElementData(thePlayer,"Fraktion") 
local veh = getPedOccupiedVehicle(thePlayer) 
if (fac == 7) and (veh == true) then 
setElementPosition ( thePlayer, -801.494, 2255.573, 58.959 ) 
setElementInterior (thePlayer, 0) 
else 
outputChatBox ("Du bist keiner von den Los Aztecas!", thePlayer, 255, 0, 0) 
end 
end 
addEventHandler ("onMarkerHit", baseteleporterz, teleporta5) 
  
teleporteraua = createMarker ( -799.587, 2264.027, 57.982, "cylinder", 5.0, 255, 0, 0) 
  
function teleporta6 (thePlayer) 
    local fac = getElementData(thePlayer,"Fraktion") 
    if fac == 7 then 
    local veh = getPedOccupiedVehicle(thePlayer) 
    if (veh) then 
    setElementPosition ( thePlayer, -649.082031, 2118.7558, 40.0499 ) 
    setElementInterior (thePlayer, 0) 
    else 
    outputChatBox ("Du bist keiner von den Los Aztecas!", thePlayer, 255, 0, 0) 
    end 
end 
end 
addEventHandler ("onMarkerHit", teleporteraua, teleporta6) 

Posted

Try

baseteleporterz = createMarker ( -649.082031, 2118.7558, 40.0499, "cylinder", 5.0, 255, 0, 0) 
  
function teleporta5(thePlayer) 
     local fac = getElementData(thePlayer,"Fraktion") 
     local veh = getPedOccupiedVehicle(thePlayer) 
     if (fac == 7) and (veh) then 
          setElementPosition(veh, -801.494, 2255.573, 58.959 ) 
          setElementInterior(veh, 0) 
     else 
          outputChatBox ("Du bist keiner von den Los Aztecas!", thePlayer, 255, 0, 0) 
     end 
end 
addEventHandler("onMarkerHit", baseteleporterz, teleporta5) 
  
teleporteraua = createMarker(-799.587, 2264.027, 57.982, "cylinder", 5.0, 255, 0, 0) 
  
function teleporta6 (thePlayer) 
     local fac = getElementData(thePlayer,"Fraktion") 
     local veh = getPedOccupiedVehicle(thePlayer) 
     if (fac == 7) and (veh) then 
          setElementPosition(veh, -649.082031, 2118.7558, 40.0499) 
          setElementInterior(veh, 0) 
     else 
          outputChatBox("Du bist keiner von den Los Aztecas!", thePlayer, 255, 0, 0) 
     end 
end 
addEventHandler("onMarkerHit", teleporteraua, teleporta6) 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...