Jump to content

Warp player into vehicles


WiBox

Recommended Posts

I tried it using a simple code as a test:

I tried in server side as:

car = createVehicle( 411, 0, 0, 1, 0, 0 , 0)

function testing()
    warpPedIntoVehicle( source, car)
end
addCommandHandler("w", testing)

In client side as:

car = createVehicle( 411, 0, 0, 1, 0, 0 , 0)

function testing()
    warpPedIntoVehicle( localPlayer, car)
end
addCommandHandler("w", testing)

At first I tried to warp only 1 player in the car, didn't work, in client side it's only for create peds as I saw at warpPedIntoVehicle but same at server side, it gave me  nil at /debugscript 3

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