Jump to content

warpPedIntoVehicle


Spice

Recommended Posts

The script

  
addEventHandler( "onClientResourceStart", getRootElement( ), 
    function ( startedRes ) 
        outputChatBox( "Race has been started" ); 
        local veh = createVehicle ( 411, 2465.43115, -1657.06018, 13.29160, 0, 0, 90 ) 
        warpPedIntoVehicle ( localPlayer, veh ) 
        setElementFrozen ( veh, true ) 
    end 
); 

The car gets spawned but i don't get warped in it. debug message : http://i.imgur.com/wPxLfkQ.jpg

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