addEventHandler("onVehicleExit", root, function(plr, seat) if seat == 0 then setElementData(source, "vehicle:driver", getPlayerName(plr)) end end)