Jump to content

A ped opened the car door?


ParadoxTR

Recommended Posts

Well i don´t know if that is possible, but you can warp the ped directly inside a vehicle with this:

function warpped( ) 
    local Ped = createPed ( 120, 5540.6654, 1020.55122, 1240.545 ) 
    local Vehicle = createVehicle ( 411, 4, 0, 3 ) 
    warpPedIntoVehicle ( Ped, Vehicle ) --you can set the seat where the player would be warped to, example: 
    --warpPedIntoVehicle ( Ped, Vehicle, 0) --Warps the vehicle as the driver 
end 
addCommandHandler ( "warp1", warpped)         --command 

EDIT: If you want to warp the ped to your current vehicle, replace

local Vehicle = createVehicle ( 411, 4, 0, 3 ) 

with

local Vehicle = getPedOccupiedVehicle (source) 

I Didn´t test this, if you need more help just reply and I will try my best

EDIT: tested:

mta_screen_2016_01_20_11_38_57.png

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