client
TaskWarpPedIntoVehicle
FiveM client native documentation with a Lua example.
Summary
Instantly places a ped into a vehicle seat (no walking animation). Common right after spawning a vehicle in car shops and garages.
Returns
void
Parameters
pednumberThe ped to place.vehiclenumberThe target vehicle.seatIndexnumberSeat: -1 = driver, 0 = front passenger, 1+ = rear.Example
local ped = PlayerPedId()
TaskWarpPedIntoVehicle(ped, veh, -1) -- into driver seatCommon pitfalls
- The vehicle must exist and be loaded before warping, or nothing happens.
- Use -1 for the driver seat; positive indices are passengers.
Related natives
Related guides
FiveM scripts done right
Optimized, dual-framework scripts for QBCore and ESX from Viper Development — escrow protected, delivered instantly to your Cfx portal.
Browse Scripts →