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
Need protected areas on your map?
Viper Safe-Zone draws polygon safe zones in-game — no hand-edited coordinates — with weapon, combat and vehicle-speed rules per zone.
See Viper Safe-Zone →