ScriptsAboutBlogToolsKnowledge BaseReviewsFAQBasketDocsSupport
client

SetPedIntoVehicle

FiveM client native documentation with a Lua example.

Summary

Places a ped into a vehicle seat. Similar to TaskWarpPedIntoVehicle but as a direct set rather than a task.

Returns

void

Parameters

pednumberThe ped to place.
vehiclenumberThe target vehicle.
seatIndexnumber-1 = driver, 0+ = passenger seats.

Example

SetPedIntoVehicle(PlayerPedId(), veh, -1)

Common pitfalls

  • Vehicle must be loaded/created first.
  • For your own player, TaskWarpPedIntoVehicle is often smoother; both are widely used.

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 →