Spawn in vehicle on join?

Title says it all, here is what i got so far:

AddEventHandler(‘playerSpawned’, function()
local pos = GetEntityCoords(PlayerPedId())
local vehicle = CreateVehicle(“zentorno”, pos, 0.0, true, false)
TaskWarpPedIntoVehicle(PlayerPedId(), vehicle, -1)
end)

Seems like its not working, could you help me out?

SetPedIntoVehicle(GetPlayerPed(-1), vehicle, -1)

@ArmAGawD

Thanks, but its still not working:

AddEventHandler(‘playerSpawned’, function()
local pos = GetEntityCoords(PlayerPedId())
local vehicle = CreateVehicle(“zentorno”, pos, 0.0, true, false)
SetPedIntoVehicle(GetPlayerPed(-1), vehicle, -1)
end)

fixed this myself.

no further help needed.

for future reference all you needed to do is load the model before spawning it and replace pos with table.unpack(pos)