Jump to content

warpPedIntoVehicle return false


Sasu

Recommended Posts

function montar() 
    warpPedIntoVehicle(conductor, carro) 
    outputChatBox(tostring(source)..", "..getPlayerName(source) or "Failed!!", root) 
    try = warpPedIntoVehicle(source, carro, 4) 
    outputChatBox(tostring(try), root) 
    triggerClientEvent("startTravel", root, conductor) 
end 
addEvent("subirPlayer", true) 
addEventHandler("subirPlayer", root, montar) 

I have this function that is trigger when I press a button. But for any reason the warpPedIntoVehicle in line 4 returns me false. I cant warp the player to the carro who is defined with createVehicle. The warpPedIntoVehicle in line 2 works perfectly. Why the other dont work?

Link to comment

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...