Por ultima vez: 'source' no va en los argumentos.
De paso probé el mio y si funciona!
addEventHandler( 'onPlayerSpawn', root,
function(_,_,_,_,theTeam)
outputChatBox( tostring(getTeamName( theTeam ) or 'NONE') )
if getTeamName( theTeam ) == "NOMBRE" then
local x, y, z = getElementPosition( source )
warpPedIntoVehicle( source, createVehicle( MODELO or 411, x, y, z + 1.75 ) )
end
end
)
Le puse un 'outputChatBox' para que revises tu 'team'.